mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
suppress log warnings when in standalone
This commit is contained in:
@@ -540,6 +540,7 @@ void System::button_init(bool refresh) {
|
|||||||
reload_settings();
|
reload_settings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef EMSESP_STANDALONE
|
||||||
if (!is_valid_gpio(pbutton_gpio_)) {
|
if (!is_valid_gpio(pbutton_gpio_)) {
|
||||||
LOG_WARNING("Invalid button GPIO. Check config.");
|
LOG_WARNING("Invalid button GPIO. Check config.");
|
||||||
myPButton_.init(255, HIGH); // disable
|
myPButton_.init(255, HIGH); // disable
|
||||||
@@ -555,6 +556,7 @@ void System::button_init(bool refresh) {
|
|||||||
myPButton_.onDblClick(BUTTON_DblClickDelay, button_OnDblClick);
|
myPButton_.onDblClick(BUTTON_DblClickDelay, button_OnDblClick);
|
||||||
myPButton_.onLongPress(BUTTON_LongPressDelay, button_OnLongPress);
|
myPButton_.onLongPress(BUTTON_LongPressDelay, button_OnLongPress);
|
||||||
myPButton_.onVLongPress(BUTTON_VLongPressDelay, button_OnVLongPress);
|
myPButton_.onVLongPress(BUTTON_VLongPressDelay, button_OnVLongPress);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// set the LED to on or off when in normal operating mode
|
// set the LED to on or off when in normal operating mode
|
||||||
@@ -1255,7 +1257,7 @@ bool System::check_upgrade(bool factory_settings) {
|
|||||||
|
|
||||||
// force WiFi sleep to off (was default on < 3.7.0-dev-33)
|
// force WiFi sleep to off (was default on < 3.7.0-dev-33)
|
||||||
networkSettings.nosleep = true;
|
networkSettings.nosleep = true;
|
||||||
LOG_INFO("Upgrade: Disbaling WiFi nosleep");
|
LOG_INFO("Upgrade: Disabling WiFi nosleep");
|
||||||
|
|
||||||
return StateUpdateResult::CHANGED;
|
return StateUpdateResult::CHANGED;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user