aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/settings/SettingShakeThreshold.cpp
diff options
context:
space:
mode:
authorFinlay Davidson <finlay.davidson@coderclass.nl>2023-03-05 14:53:49 +0100
committerRiku Isokoski <riksu9000@gmail.com>2023-03-09 10:17:03 +0200
commitf993311830df3ebe1d6ff4022aa3019a55f9bbd7 (patch)
tree90ebe08968f510481d1b6b98d3af2e04369472f2 /src/displayapp/screens/settings/SettingShakeThreshold.cpp
parentada182336f8b0cff0db21118dbd4df864f818214 (diff)
shakewake: Fix names according to style guide
Diffstat (limited to 'src/displayapp/screens/settings/SettingShakeThreshold.cpp')
-rw-r--r--src/displayapp/screens/settings/SettingShakeThreshold.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/displayapp/screens/settings/SettingShakeThreshold.cpp b/src/displayapp/screens/settings/SettingShakeThreshold.cpp
index f4b6f959..be67cc95 100644
--- a/src/displayapp/screens/settings/SettingShakeThreshold.cpp
+++ b/src/displayapp/screens/settings/SettingShakeThreshold.cpp
@@ -96,16 +96,16 @@ void SettingShakeThreshold::Refresh() {
}
if (calibrating == 2) {
- if ((motionController.currentShakeSpeed() - 300) > lv_arc_get_value(positionArc)) {
- lv_arc_set_value(positionArc, (int16_t) motionController.currentShakeSpeed() - 300);
+ if ((motionController.CurrentShakeSpeed() - 300) > lv_arc_get_value(positionArc)) {
+ lv_arc_set_value(positionArc, (int16_t) motionController.CurrentShakeSpeed() - 300);
}
if (xTaskGetTickCount() - vCalTime > pdMS_TO_TICKS(7500)) {
lv_btn_set_state(calButton, LV_STATE_DEFAULT);
lv_event_send(calButton, LV_EVENT_VALUE_CHANGED, nullptr);
}
}
- if (motionController.currentShakeSpeed() - 300 > lv_arc_get_value(animArc)) {
- lv_arc_set_value(animArc, (uint16_t) motionController.currentShakeSpeed() - 300);
+ if (motionController.CurrentShakeSpeed() - 300 > lv_arc_get_value(animArc)) {
+ lv_arc_set_value(animArc, (uint16_t) motionController.CurrentShakeSpeed() - 300);
vDecay = xTaskGetTickCount();
} else if ((xTaskGetTickCount() - vDecay) > pdMS_TO_TICKS(1500)) {
lv_arc_set_value(animArc, lv_arc_get_value(animArc) - 25);