diff --git a/data b/data index 266a99b..653a39d 160000 --- a/data +++ b/data @@ -1 +1 @@ -Subproject commit 266a99be96189bea92e0ef593f930bb92d3b5b20 +Subproject commit 653a39d0a339bcf3ac3365eacd2e5e8136ecf4c6 diff --git a/src/lib/defaults.hpp b/src/lib/defaults.hpp index 8380f46..13e222b 100644 --- a/src/lib/defaults.hpp +++ b/src/lib/defaults.hpp @@ -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 diff --git a/src/lib/epd.cpp b/src/lib/epd.cpp index 506f262..feee114 100644 --- a/src/lib/epd.cpp +++ b/src/lib/epd.cpp @@ -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()); diff --git a/src/lib/webserver.cpp b/src/lib/webserver.cpp index 0a55ff8..d66f0d2 100644 --- a/src/lib/webserver.cpp +++ b/src/lib/webserver.cpp @@ -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);