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:
@@ -57,7 +57,7 @@ SettingShakeThreshold::SettingShakeThreshold(DisplayApp* app,
|
||||
lv_obj_set_width(calButton, 200);
|
||||
lv_obj_align(calButton, lv_scr_act(), LV_ALIGN_IN_BOTTOM_MID, 0, 0);
|
||||
lv_btn_set_checkable(calButton, true);
|
||||
calLabel = lv_label_create(calButton, NULL);
|
||||
calLabel = lv_label_create(calButton, nullptr);
|
||||
lv_label_set_text_static(calLabel, "Calibrate");
|
||||
|
||||
lv_arc_set_value(positionArc, settingsController.GetShakeThreshold());
|
||||
@@ -102,7 +102,7 @@ void SettingShakeThreshold::Refresh() {
|
||||
}
|
||||
if (xTaskGetTickCount() - vCalTime > pdMS_TO_TICKS(7500)) {
|
||||
lv_btn_set_state(calButton, LV_STATE_DEFAULT);
|
||||
lv_event_send(calButton, LV_EVENT_VALUE_CHANGED, NULL);
|
||||
lv_event_send(calButton, LV_EVENT_VALUE_CHANGED, nullptr);
|
||||
}
|
||||
}
|
||||
if (motionController.currentShakeSpeed() - 300 > lv_arc_get_value(animArc)) {
|
||||
|
Reference in New Issue
Block a user