Improve data source selection, clean up unused preferences
All checks were successful
BTClock CI / build (push) Successful in 27m2s
BTClock CI / merge (map[name:btclock_v8 version:esp32s3], 213epd) (push) Successful in 21s
BTClock CI / merge (map[name:btclock_rev_b version:esp32s3], 213epd) (push) Successful in 36s
BTClock CI / merge (map[name:lolin_s3_mini version:esp32s3], 213epd) (push) Successful in 20s
BTClock CI / merge (map[name:lolin_s3_mini version:esp32s3], 29epd) (push) Successful in 30s
BTClock CI / release (push) Successful in 12s

This commit is contained in:
Djuri 2024-12-28 18:19:31 +01:00
parent bc3e5afe51
commit 64e518bf58
13 changed files with 155 additions and 104 deletions

View file

@ -135,7 +135,7 @@ extern "C" void app_main() {
Serial.begin(115200);
setup();
bool ownDataSource = preferences.getBool("ownDataSource", DEFAULT_OWN_DATA_SOURCE);
bool thirdPartySource = getDataSource() == THIRD_PARTY_SOURCE;
while (true) {
@ -147,7 +147,7 @@ extern "C" void app_main() {
handleFrontlight();
checkWiFiConnection();
if (!ownDataSource) {
if (thirdPartySource) {
monitorDataConnections();
}