src: Enable unused parameter warning
Fix warnings. Some clang-formatting was necessary. DebugPins is unused and was removed.
This commit is contained in:
parent
8b0d888952
commit
a3e14c012d
42 changed files with 110 additions and 168 deletions
|
|
@ -11,12 +11,12 @@ using namespace Pinetime::Applications::Screens;
|
|||
namespace {
|
||||
void OnBluetoothDisabledEvent(lv_obj_t* obj, lv_event_t event) {
|
||||
auto* screen = static_cast<SettingBluetooth*>(obj->user_data);
|
||||
screen->OnBluetoothDisabled(obj, event);
|
||||
screen->OnBluetoothDisabled(event);
|
||||
}
|
||||
|
||||
void OnBluetoothEnabledEvent(lv_obj_t* obj, lv_event_t event) {
|
||||
auto* screen = static_cast<SettingBluetooth*>(obj->user_data);
|
||||
screen->OnBluetoothEnabled(obj, event);
|
||||
screen->OnBluetoothEnabled(event);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ SettingBluetooth::~SettingBluetooth() {
|
|||
}
|
||||
}
|
||||
|
||||
void SettingBluetooth::OnBluetoothDisabled(lv_obj_t* object, lv_event_t event) {
|
||||
void SettingBluetooth::OnBluetoothDisabled(lv_event_t event) {
|
||||
if (event == LV_EVENT_VALUE_CHANGED) {
|
||||
lv_checkbox_set_checked(cbEnabled, false);
|
||||
lv_checkbox_set_checked(cbDisabled, true);
|
||||
|
|
@ -83,7 +83,7 @@ void SettingBluetooth::OnBluetoothDisabled(lv_obj_t* object, lv_event_t event) {
|
|||
}
|
||||
}
|
||||
|
||||
void SettingBluetooth::OnBluetoothEnabled(lv_obj_t* object, lv_event_t event) {
|
||||
void SettingBluetooth::OnBluetoothEnabled(lv_event_t event) {
|
||||
if (event == LV_EVENT_VALUE_CHANGED) {
|
||||
lv_checkbox_set_checked(cbEnabled, true);
|
||||
lv_checkbox_set_checked(cbDisabled, false);
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ namespace Pinetime {
|
|||
SettingBluetooth(DisplayApp* app, Pinetime::Controllers::Settings& settingsController);
|
||||
~SettingBluetooth() override;
|
||||
|
||||
void OnBluetoothEnabled(lv_obj_t* object, lv_event_t event);
|
||||
void OnBluetoothDisabled(lv_obj_t* object, lv_event_t event);
|
||||
void OnBluetoothEnabled(lv_event_t event);
|
||||
void OnBluetoothDisabled(lv_event_t event);
|
||||
|
||||
private:
|
||||
Controllers::Settings& settingsController;
|
||||
|
|
|
|||
|
|
@ -100,7 +100,6 @@ void SettingSetDate::HandleButtonPress() {
|
|||
dateTimeController.SetTime(yearValue,
|
||||
monthValue,
|
||||
dayValue,
|
||||
0,
|
||||
dateTimeController.Hours(),
|
||||
dateTimeController.Minutes(),
|
||||
dateTimeController.Seconds(),
|
||||
|
|
|
|||
|
|
@ -99,7 +99,6 @@ void SettingSetTime::SetTime() {
|
|||
dateTimeController.SetTime(dateTimeController.Year(),
|
||||
static_cast<uint8_t>(dateTimeController.Month()),
|
||||
dateTimeController.Day(),
|
||||
static_cast<uint8_t>(dateTimeController.DayOfWeek()),
|
||||
static_cast<uint8_t>(hoursValue),
|
||||
static_cast<uint8_t>(minutesValue),
|
||||
0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue