Update clang-tidy configuration and fix some warnings (#1474)

Don't enable coding conventions from unrelated projects. Only enable
generic checks.
This commit is contained in:
Riku Isokoski
2022-12-18 19:14:36 +02:00
committed by GitHub
parent bfedf47d1a
commit afea7ca0d1
24 changed files with 153 additions and 151 deletions

View File

@@ -64,8 +64,9 @@ HeartRate::HeartRate(Pinetime::Applications::DisplayApp* app,
label_startStop = lv_label_create(btn_startStop, nullptr);
UpdateStartStopButton(isHrRunning);
if (isHrRunning)
if (isHrRunning) {
systemTask.PushMessage(Pinetime::System::Messages::DisableSleeping);
}
taskRefresh = lv_task_create(RefreshTaskCallback, 100, LV_TASK_PRIO_MID, this);
}
@@ -110,8 +111,9 @@ void HeartRate::OnStartStopEvent(lv_event_t event) {
}
void HeartRate::UpdateStartStopButton(bool isRunning) {
if (isRunning)
if (isRunning) {
lv_label_set_text_static(label_startStop, "Stop");
else
} else {
lv_label_set_text_static(label_startStop, "Start");
}
}