other fixes

This commit is contained in:
Marcel Walter 2026-01-20 00:54:29 +01:00
parent 7c316e54cc
commit 01a658717f

View File

@ -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;