minor fixes

This commit is contained in:
Gabor Kiss-Vamosi
2021-02-14 14:56:34 +01:00
parent 95b1bd8409
commit bb08660cb6
105 changed files with 731 additions and 891 deletions

View File

@@ -1,13 +1,12 @@
#include "../../../lvgl.h"
#include <stdio.h>
#if LV_USE_CHECKBOX
#if LV_USE_CHECKBOX && LV_BUILD_EXAMPLES
static void event_handler(lv_obj_t * obj, lv_event_t event)
{
if(event == LV_EVENT_VALUE_CHANGED) {
const char * txt = lv_checkbox_get_text(obj);
const char * state = lv_obj_get_state(obj) & LV_STATE_CHECKED ? "Checked" : "Unchecked";
printf("%s: %s\n", txt, state);
LV_LOG_USER("%s: %s\n", txt, state);
}
}