summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/StopWatch.cpp
diff options
context:
space:
mode:
authorKieran Cawthray <kieranc@gmail.com>2021-05-18 13:23:26 (GMT)
committerKieran Cawthray <kieranc@gmail.com>2021-05-18 13:33:25 (GMT)
commit378fa6b4016b65e2d7b128fdc3ce89c4ca779a4d (patch)
treef4aa571df53901a0cbc00d1ac9a86e23b7194180 /src/displayapp/screens/StopWatch.cpp
parent9ab298c09e273479822d10aad9f7bfe1d287ce75 (diff)
Reset
Diffstat (limited to 'src/displayapp/screens/StopWatch.cpp')
-rw-r--r--src/displayapp/screens/StopWatch.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/displayapp/screens/StopWatch.cpp b/src/displayapp/screens/StopWatch.cpp
index d7cd20c..e06981a 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");