Skip to content

Commit

Permalink
Update evdev.c
Browse files Browse the repository at this point in the history
Removed clamp from Calibrate section as it has map in it.
lvgl#291
  • Loading branch information
elgerg authored Sep 4, 2023
1 parent e44e7f0 commit ebcd0c9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions indev/evdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,6 @@ void evdev_read(lv_indev_drv_t * drv, lv_indev_data_t * data)
/*Store the collected data*/

#if EVDEV_CALIBRATE
evdev_root_x = LV_CLAMP(EVDEV_HOR_MIN, evdev_root_x, EVDEV_HOR_MAX);
evdev_root_y = LV_CLAMP(EVDEV_VER_MIN, evdev_root_y, EVDEV_VER_MAX);

data->point.x = map(evdev_root_x, EVDEV_HOR_MIN, EVDEV_HOR_MAX, 0, drv->disp->driver->hor_res);
data->point.y = map(evdev_root_y, EVDEV_VER_MIN, EVDEV_VER_MAX, 0, drv->disp->driver->ver_res);
#else
Expand Down

0 comments on commit ebcd0c9

Please sign in to comment.