Clang-format changes

This commit is contained in:
Sándor Rátkai 2024-09-09 00:38:02 +02:00 committed by Hunman
parent 64ec5131b0
commit 5b38885b44
4 changed files with 8 additions and 5 deletions

View file

@ -37,7 +37,7 @@ namespace {
}
void MotionController::AdvanceDay() {
--nbSteps; // Higher index = further in the past
--nbSteps; // Higher index = further in the past
nbSteps[today] = -1; // Ensure that the `this->nbSteps[today] != nbSteps` condition in `Update()` will be FALSE
}

View file

@ -47,7 +47,7 @@ namespace Pinetime {
return nbSteps[today];
}
const Utility::CircularBuffer<step_t, stepHistorySize> &StepCounterHistory() const {
const Utility::CircularBuffer<step_t, stepHistorySize>& StepCounterHistory() const {
return nbSteps;
}

View file

@ -11,7 +11,10 @@ static void lap_event_handler(lv_obj_t* obj, lv_event_t event) {
}
Steps::Steps(Controllers::MotionController& motionController, Controllers::Settings& settingsController)
: motionController {motionController}, settingsController {settingsController}, yesterdayStr {"Yest: %5lu"}, stepsCount {motionController.StepCounterHistory()} {
: motionController {motionController},
settingsController {settingsController},
yesterdayStr {"Yest: %5lu"},
stepsCount {motionController.StepCounterHistory()} {
stepsArc = lv_arc_create(lv_scr_act(), nullptr);

View file

@ -38,9 +38,9 @@ namespace Pinetime {
lv_obj_t* resetButtonLabel;
lv_obj_t* tripLabel;
const char *yesterdayStr;
const char* yesterdayStr;
const Utility::CircularBuffer<Controllers::MotionController::step_t, Controllers::MotionController::stepHistorySize> &stepsCount;
const Utility::CircularBuffer<Controllers::MotionController::step_t, Controllers::MotionController::stepHistorySize>& stepsCount;
lv_task_t* taskRefresh;
};