diff options
| author | Kieran Cawthray <kieranc@gmail.com> | 2021-05-18 15:23:26 +0200 |
|---|---|---|
| committer | Kieran Cawthray <kieranc@gmail.com> | 2021-05-18 15:33:25 +0200 |
| commit | 378fa6b4016b65e2d7b128fdc3ce89c4ca779a4d (patch) | |
| tree | f4aa571df53901a0cbc00d1ac9a86e23b7194180 /src/displayapp/screens/StopWatch.cpp | |
| parent | 9ab298c09e273479822d10aad9f7bfe1d287ce75 (diff) | |
Reset
Diffstat (limited to 'src/displayapp/screens/StopWatch.cpp')
| -rw-r--r-- | src/displayapp/screens/StopWatch.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/displayapp/screens/StopWatch.cpp b/src/displayapp/screens/StopWatch.cpp index d7cd20c3..e06981af 100644 --- a/src/displayapp/screens/StopWatch.cpp +++ b/src/displayapp/screens/StopWatch.cpp @@ -115,9 +115,8 @@ bool StopWatch::Refresh() { // Init state when an user first opens the app // and when a stop/reset button is pressed case States::Init: { - if (btnStopLap != nullptr) { + if (btnStopLap) { lv_obj_del(btnStopLap); - btnStopLap = nullptr; } // The initial default value lv_label_set_text(time, "00:00"); |
