lv_sw: lv_sw_toggle doc fix
This commit is contained in:
committed by
Gabor Kiss-Vamosi
parent
610548ba3d
commit
514511c15a
@@ -148,9 +148,9 @@ void lv_sw_off(lv_obj_t * sw)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set a function which will be called when the switch is toggled by the user
|
* Toggle the position of the switch
|
||||||
* @param sw pointer to switch object
|
* @param sw pointer to a switch object
|
||||||
* @param action a callback function
|
* @return resulting state of the switch.
|
||||||
*/
|
*/
|
||||||
bool lv_sw_toggle(lv_obj_t *sw) {
|
bool lv_sw_toggle(lv_obj_t *sw) {
|
||||||
bool state = lv_sw_get_state(sw);
|
bool state = lv_sw_get_state(sw);
|
||||||
|
|||||||
Reference in New Issue
Block a user