fix warning

This commit is contained in:
Gabor Kiss-Vamosi
2021-03-19 16:04:23 +01:00
parent 666653efe7
commit fa5e42ac0e

View File

@@ -475,9 +475,9 @@ static void lv_table_event(lv_obj_t * obj, lv_event_t e)
else if(e == LV_EVENT_PRESSED || e == LV_EVENT_PRESSING) {
uint16_t col;
uint16_t row;
lv_res_t res = get_pressed_cell(obj, &row, &col);
lv_res_t pr_res = get_pressed_cell(obj, &row, &col);
if(res == LV_RES_OK && (table->col_act != col || table->row_act != row)) {
if(pr_res == LV_RES_OK && (table->col_act != col || table->row_act != row)) {
table->col_act = col;
table->row_act = row;
}