forked from btclock/btclock_v3
Use own data source for price and block data
This commit is contained in:
parent
efaab00fb4
commit
e0283d98ca
6 changed files with 20 additions and 11 deletions
|
@ -329,7 +329,7 @@ void onApiSettingsPatch(AsyncWebServerRequest *request, JsonVariant &json) {
|
|||
String boolSettings[] = {"fetchEurPrice", "ledTestOnPower", "ledFlashOnUpd",
|
||||
"mdnsEnabled", "otaEnabled", "stealFocus",
|
||||
"mcapBigChar", "useSatsSymbol", "useBlkCountdown",
|
||||
"suffixPrice", "disableLeds", "ownPriceSource", "flAlwaysOn"};
|
||||
"suffixPrice", "disableLeds", "ownDataSource", "flAlwaysOn"};
|
||||
|
||||
for (String setting : boolSettings) {
|
||||
if (settings.containsKey(setting)) {
|
||||
|
@ -425,7 +425,7 @@ void onApiSettingsGet(AsyncWebServerRequest *request) {
|
|||
root["hostname"] = getMyHostname();
|
||||
root["ip"] = WiFi.localIP();
|
||||
root["txPower"] = WiFi.getTxPower();
|
||||
root["ownPriceSource"] = preferences.getBool("ownPriceSource", true);
|
||||
root["ownDataSource"] = preferences.getBool("ownDataSource", true);
|
||||
|
||||
#ifdef HAS_FRONTLIGHT
|
||||
root["hasFrontlight"] = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue