From effced8bda7ab61fd38a88ec26c06f568409957d Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 7 May 2024 03:38:17 +0000 Subject: [PATCH] stopwatch: disable laps at maxLapCount --- src/displayapp/screens/StopWatch.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/displayapp/screens/StopWatch.cpp b/src/displayapp/screens/StopWatch.cpp index c649f793..d1ef89f2 100644 --- a/src/displayapp/screens/StopWatch.cpp +++ b/src/displayapp/screens/StopWatch.cpp @@ -195,7 +195,6 @@ void StopWatch::stopLapBtnEventHandler() { lv_label_set_text(lapText, ""); lapsDone = std::min(lapsDone + 1, maxLapCount); if (lapsDone == maxLapCount) { - // lv_obj_set_style_local_bg_color(btnStopLap, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, Colors::bgDark); lv_obj_set_state(btnStopLap, LV_STATE_DISABLED); lv_obj_set_state(txtStopLap, LV_STATE_DISABLED); }