From f993311830df3ebe1d6ff4022aa3019a55f9bbd7 Mon Sep 17 00:00:00 2001 From: Finlay Davidson Date: Sun, 5 Mar 2023 14:53:49 +0100 Subject: shakewake: Fix names according to style guide --- src/displayapp/screens/settings/SettingShakeThreshold.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/displayapp/screens/settings') 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); -- cgit v1.2.3-70-g09d2