Skip to content

Commit

Permalink
Removed clamp from Calibrate section as it has map in it
Browse files Browse the repository at this point in the history
  • Loading branch information
elgerg authored Sep 5, 2023
1 parent e44e7f0 commit c239cc4
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 c239cc4

Please sign in to comment.