@@ -455,7 +455,7 @@ void onApiSettingsPatch(AsyncWebServerRequest *request, JsonVariant &json)
455
455
}
456
456
}
457
457
458
- String uintSettings[] = {" minSecPriceUpd" , " fullRefreshMin" , " ledBrightness" , " flMaxBrightness" , " flEffectDelay" , " luxLightToggle" , " wpTimeout" };
458
+ String uintSettings[] = {" minSecPriceUpd" , " fullRefreshMin" , " ledBrightness" , " flMaxBrightness" , " flEffectDelay" , " luxLightToggle" , " wpTimeout" , " srcV2Currency " };
459
459
460
460
for (String setting : uintSettings)
461
461
{
@@ -478,7 +478,7 @@ void onApiSettingsPatch(AsyncWebServerRequest *request, JsonVariant &json)
478
478
String boolSettings[] = {" fetchEurPrice" , " ledTestOnPower" , " ledFlashOnUpd" ,
479
479
" mdnsEnabled" , " otaEnabled" , " stealFocus" ,
480
480
" mcapBigChar" , " useSatsSymbol" , " useBlkCountdown" ,
481
- " suffixPrice" , " disableLeds" , " ownDataSource" , " flAlwaysOn" , " flFlashOnUpd" , " mempoolSecure" , " useNostr" , " bitaxeEnabled" , " nostrZapNotify" };
481
+ " suffixPrice" , " disableLeds" , " ownDataSource" , " flAlwaysOn" , " flFlashOnUpd" , " mempoolSecure" , " useNostr" , " bitaxeEnabled" , " nostrZapNotify" , " stagingSource " };
482
482
483
483
for (String setting : boolSettings)
484
484
{
@@ -597,6 +597,8 @@ void onApiSettingsGet(AsyncWebServerRequest *request)
597
597
root[" ip" ] = WiFi.localIP ();
598
598
root[" txPower" ] = WiFi.getTxPower ();
599
599
root[" ownDataSource" ] = preferences.getBool (" ownDataSource" , DEFAULT_OWN_DATA_SOURCE);
600
+ root[" stagingSource" ] = preferences.getBool (" stagingSource" , DEFAULT_STAGING_SOURCE);
601
+ root[" srcV2Currency" ] = preferences.getChar (" srcV2Currency" , DEFAULT_V2_SOURCE_CURRENCY);
600
602
601
603
root[" nostrPubKey" ] = preferences.getString (" nostrPubKey" , DEFAULT_NOSTR_NPUB);
602
604
root[" nostrRelay" ] = preferences.getString (" nostrRelay" , DEFAULT_NOSTR_RELAY);
0 commit comments