diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/displayapp/screens/Timer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/Timer.cpp b/src/displayapp/screens/Timer.cpp index 31cde733..d5f2a2b7 100644 --- a/src/displayapp/screens/Timer.cpp +++ b/src/displayapp/screens/Timer.cpp @@ -105,7 +105,7 @@ void Timer::UpdateMask() { void Timer::Refresh() { if (timer.IsRunning()) { DisplayTime(); - } else if (buttonPressing && xTaskGetTickCount() > pressTime + pdMS_TO_TICKS(150)) { + } else if (buttonPressing && xTaskGetTickCount() - pressTime > pdMS_TO_TICKS(150)) { lv_label_set_text_static(txtPlayPause, "Reset"); maskPosition += 15; if (maskPosition > 240) { |
