From 01a658717f30264fea7e4d20117db7cd563f0ed3 Mon Sep 17 00:00:00 2001 From: Marcel Walter Date: Tue, 20 Jan 2026 00:54:29 +0100 Subject: [PATCH] other fixes --- src/main.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 0658b53..28457cb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,7 +22,7 @@ void onOTAStart() /* ------------ FlipDot variables -------------- */ #define WIDTH 96 #define HEIGHT 16 -#define FLIPDOT_BUFFER_SIZE (WIDTH * HEIGHT / 2) +#define FLIPDOT_BUFFER_SIZE (WIDTH * HEIGHT / 8) #define ROTATION 0 // 0 or 2 for 0 degrees or 180 degrees #define MAX_CHAR_PER_LINE WIDTH / 6 @@ -102,17 +102,9 @@ void setup() WiFi.begin(WIFI_SSID, WIFI_PASSWORD); /* get internet time */ - Serial.print("Retrieving time: "); + Serial.print("setup time: "); configTime(0, 0, "pool.ntp.org"); // get UTC time via NTP configTzTime("CET-1CEST,M3.5.0,M10.5.0/3", "pool.ntp.org"); - time_t now = time(nullptr); - while (now < 24 * 3600) - { - Serial.print("."); - delay(100); - now = time(nullptr); - } - Serial.println(now); /* setup ArduinoOTA */ ArduinoOTA.setHostname(HOSTNAME); @@ -121,7 +113,7 @@ void setup() void loop() { - static wl_status_t oldWifiStatus = WL_DISCONNECTED; + static wl_status_t oldWifiStatus = (wl_status_t)254; unsigned long now = millis(); static unsigned long lastDisplayRefresh = now; static unsigned long lastTelegramRefresh = now;