forked from btclock/btclock_v3
Add functionality to disable all LEDs
This commit is contained in:
parent
969d2137c3
commit
3e00f1b4a6
6 changed files with 15 additions and 7 deletions
|
@ -320,7 +320,8 @@ void onApiSettingsPatch(AsyncWebServerRequest *request, JsonVariant &json) {
|
|||
|
||||
String boolSettings[] = {"fetchEurPrice", "ledTestOnPower", "ledFlashOnUpd",
|
||||
"mdnsEnabled", "otaEnabled", "stealFocus",
|
||||
"mcapBigChar", "useSatsSymbol", "useBlkCountdown"};
|
||||
"mcapBigChar", "useSatsSymbol", "useBlkCountdown",
|
||||
"suffixPrice", "disableLeds"};
|
||||
|
||||
for (String setting : boolSettings) {
|
||||
if (settings.containsKey(setting)) {
|
||||
|
@ -409,6 +410,8 @@ void onApiSettingsGet(AsyncWebServerRequest *request) {
|
|||
root["fetchEurPrice"] = preferences.getBool("fetchEurPrice", false);
|
||||
root["useSatsSymbol"] = preferences.getBool("useSatsSymbol", false);
|
||||
root["useBlkCountdown"] = preferences.getBool("useBlkCountdown", false);
|
||||
root["suffixPrice"] = preferences.getBool("suffixPrice", false);
|
||||
root["disableLeds"] = preferences.getBool("disableLeds", false);
|
||||
|
||||
root["hostnamePrefix"] = preferences.getString("hostnamePrefix", "btclock");
|
||||
root["hostname"] = getMyHostname();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue