fix warnings and make tests working
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
static void event_handler(lv_obj_t * obj, lv_event_t event)
|
||||
{
|
||||
LV_UNUSED(obj);
|
||||
if(event == LV_EVENT_CLICKED) {
|
||||
LV_LOG_USER("Clicked\n");
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ static void event_cb(lv_obj_t * obj, lv_event_t e)
|
||||
|
||||
static void add_data(lv_timer_t * timer)
|
||||
{
|
||||
LV_UNUSED(timer);
|
||||
static uint32_t cnt = 0;
|
||||
lv_chart_set_next_value(chart1, ser1, lv_rand(20, 90));
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
static void event_cb(lv_obj_t * chart, lv_event_t e)
|
||||
{
|
||||
LV_UNUSED(chart);
|
||||
if(e == LV_EVENT_DRAW_PART_BEGIN) {
|
||||
lv_obj_draw_hook_dsc_t * hook_dsc = lv_event_get_param();
|
||||
if(hook_dsc->part == LV_PART_MARKER && hook_dsc->sub_part_id == LV_CHART_AXIS_X) {
|
||||
|
||||
@@ -40,6 +40,8 @@ void lv_example_img_2(void)
|
||||
|
||||
static void slider_event_cb(lv_obj_t * slider, lv_event_t event)
|
||||
{
|
||||
LV_UNUSED(slider);
|
||||
|
||||
if(event == LV_EVENT_VALUE_CHANGED) {
|
||||
/* Recolor the image based on the sliders' values */
|
||||
lv_color_t color = lv_color_make(lv_slider_get_value(red_slider), lv_slider_get_value(green_slider), lv_slider_get_value(blue_slider));
|
||||
|
||||
@@ -6,6 +6,7 @@ static lv_obj_t * spinbox;
|
||||
|
||||
static void lv_spinbox_increment_event_cb(lv_obj_t * btn, lv_event_t e)
|
||||
{
|
||||
LV_UNUSED(btn);
|
||||
if(e == LV_EVENT_SHORT_CLICKED || e == LV_EVENT_LONG_PRESSED_REPEAT) {
|
||||
lv_spinbox_increment(spinbox);
|
||||
}
|
||||
@@ -13,6 +14,7 @@ static void lv_spinbox_increment_event_cb(lv_obj_t * btn, lv_event_t e)
|
||||
|
||||
static void lv_spinbox_decrement_event_cb(lv_obj_t * btn, lv_event_t e)
|
||||
{
|
||||
LV_UNUSED(btn);
|
||||
if(e == LV_EVENT_SHORT_CLICKED || e == LV_EVENT_LONG_PRESSED_REPEAT) {
|
||||
lv_spinbox_decrement(spinbox);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user