Skip to content

Commit

Permalink
Fix for #839
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanroie committed Dec 23, 2024
1 parent bddbc3c commit 3eda5a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hasp/hasp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ lv_font_t* hasp_get_font(uint8_t fontid)
*/
HASP_ATTRIBUTE_FAST_MEM void hasp_update_sleep_state()
{
if(hasp_first_touch_state) return; // don't update sleep when first touch is still active
// Don't fast exit, see issue #839
// if(hasp_first_touch_state) return; // don't update sleep when first touch is still active

uint32_t idle = lv_disp_get_inactive_time(lv_disp_get_default()) / 1000;
idle += sleepTimeOffset; // To force a specific state
Expand Down

0 comments on commit 3eda5a4

Please sign in to comment.