Compare commits

..

4 commits

Author SHA1 Message Date
6072cbf515 Ocean and Braiins fetches were working, but now esp32 won't boot 2024-12-17 18:05:27 -06:00
Djuri Baars
21174553e8 Update WebUI 2024-12-17 18:05:27 -06:00
Djuri Baars
2245579ca2 Adapted tests for Mow Units 2024-12-17 18:05:27 -06:00
Djuri Baars
15584d57ac Add frontlight off when dark setting 2024-12-17 18:05:27 -06:00
4 changed files with 3 additions and 11 deletions

2
data

@ -1 +1 @@
Subproject commit 266a99be96189bea92e0ef593f930bb92d3b5b20
Subproject commit 653a39d0a339bcf3ac3365eacd2e5e8136ecf4c6

View file

@ -77,4 +77,3 @@
#define DEFAULT_ACTIVE_CURRENCIES "USD,EUR,JPY"
#define DEFAULT_GIT_RELEASE_URL "https://git.btclock.dev/api/v1/repos/btclock/btclock_v3/releases/latest"
#define DEFAULT_VERTICAL_DESC true

View file

@ -373,11 +373,7 @@ extern "C" void updateDisplay(void *pvParameters) noexcept
void splitText(const uint dispNum, const String &top, const String &bottom,
bool partial)
{
if(preferences.getBool("verticalDesc", DEFAULT_VERTICAL_DESC) && dispNum == 0) {
displays[dispNum].setRotation(1);
} else {
displays[dispNum].setRotation(2);
}
displays[dispNum].setRotation(2);
displays[dispNum].setFont(&FONT_SMALL);
displays[dispNum].setTextColor(getFgColor());

View file

@ -548,8 +548,7 @@ void onApiSettingsPatch(AsyncWebServerRequest *request, JsonVariant &json)
"suffixPrice", "disableLeds", "ownDataSource",
"mowMode", "suffixShareDot", "flOffWhenDark",
"flAlwaysOn", "flDisable", "flFlashOnUpd",
"mempoolSecure", "useNostr", "bitaxeEnabled",
"miningPoolStatsEnabled", "verticalDesc",
"mempoolSecure", "useNostr", "bitaxeEnabled", "miningPoolStatsEnabled",
"nostrZapNotify", "stagingSource", "httpAuthEnabled"};
for (String setting : boolSettings)
@ -690,8 +689,6 @@ void onApiSettingsGet(AsyncWebServerRequest *request)
root["suffixPrice"] = preferences.getBool("suffixPrice", DEFAULT_SUFFIX_PRICE);
root["disableLeds"] = preferences.getBool("disableLeds", DEFAULT_DISABLE_LEDS);
root["mowMode"] = preferences.getBool("mowMode", DEFAULT_MOW_MODE);
root["verticalDesc"] = preferences.getBool("verticalDesc", DEFAULT_VERTICAL_DESC);
root["suffixShareDot"] = preferences.getBool("suffixShareDot", DEFAULT_SUFFIX_SHARE_DOT);
root["hostnamePrefix"] = preferences.getString("hostnamePrefix", DEFAULT_HOSTNAME_PREFIX);