summaryrefslogtreecommitdiff
path: root/src/displayapp/widgets
diff options
context:
space:
mode:
authorFinlay Davidson <finlay.davidson@coderclass.nl>2023-01-03 14:05:30 +0000
committerJF <JF002@users.noreply.github.com>2023-01-04 17:15:33 +0100
commiteda96ffadc824742bf937c58f5295c86389a6d5e (patch)
tree1780b2fff3719f721c534cee192d28da945c9ff9 /src/displayapp/widgets
parent318a243df1ad844ed487b936eb7edde876fc5ef6 (diff)
Update clang-{format,tidy} to 14
Also add configuration options only available in 13 and 14. Fixes warning about -fstack-usage in clang-tidy check.
Diffstat (limited to 'src/displayapp/widgets')
-rw-r--r--src/displayapp/widgets/Counter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/displayapp/widgets/Counter.cpp b/src/displayapp/widgets/Counter.cpp
index ccc28cc8..b486e372 100644
--- a/src/displayapp/widgets/Counter.cpp
+++ b/src/displayapp/widgets/Counter.cpp
@@ -18,6 +18,7 @@ namespace {
widget->DownBtnPressed();
}
}
+
constexpr int digitCount(int number) {
int digitCount = 0;
while (number > 0) {
@@ -67,6 +68,7 @@ void Counter::HideControls() {
lv_obj_set_hidden(lowerLine, true);
lv_obj_set_style_local_bg_opa(counterContainer, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_OPA_TRANSP);
}
+
void Counter::ShowControls() {
lv_obj_set_hidden(upBtn, false);
lv_obj_set_hidden(downBtn, false);