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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user