From 732f88aec320d8313a3526dc43ee94220bbeadbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Wed, 19 Feb 2025 15:56:43 +0100 Subject: [PATCH] Fermenter split into multiple files 3 + Fermenter Program 2 --- src/node/Fermenter/ProgramPoint.h | 4 ++-- src/patrix/wifi.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node/Fermenter/ProgramPoint.h b/src/node/Fermenter/ProgramPoint.h index c8ee42e..ada186c 100644 --- a/src/node/Fermenter/ProgramPoint.h +++ b/src/node/Fermenter/ProgramPoint.h @@ -11,9 +11,9 @@ inline String durationString(const unsigned long millis) { const unsigned long days = hours / 24; char buffer[15]; if (days > 0) { - snprintf(buffer, sizeof buffer, "%d. %2d:%02d:%02d", days, hours % 24, minutes % 60, seconds % 60); + snprintf(buffer, sizeof buffer, "%lu. %2lu:%02lu:%02lu", days, hours % 24, minutes % 60, seconds % 60); } else { - snprintf(buffer, sizeof buffer, "%d:%02d:%02d", hours % 24, minutes % 60, seconds % 60); + snprintf(buffer, sizeof buffer, "%lu:%02lu:%02lu", hours % 24, minutes % 60, seconds % 60); } return {buffer}; } diff --git a/src/patrix/wifi.cpp b/src/patrix/wifi.cpp index 8ca980a..e3b580f 100644 --- a/src/patrix/wifi.cpp +++ b/src/patrix/wifi.cpp @@ -7,7 +7,7 @@ #define WIFI_SSID "HappyNet" #define WIFI_PASSWORD "1Grausame!Sackratte7" #define NTP_SERVER "107.189.12.98" /* pool.ntp.org */ -#define BOOT_DELAY_SEC 1 +#define BOOT_DELAY_SEC 5 auto wifiConnected = false;