mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 15:11:51 +02:00
Clang-format changes
This commit is contained in:
parent
64ec5131b0
commit
5b38885b44
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue