Fermenter split into multiple files 3 + Fermenter Program 2

This commit is contained in:
Patrick Haßel 2025-02-19 15:56:43 +01:00
parent 1e1a1c8a5b
commit 732f88aec3
2 changed files with 3 additions and 3 deletions

View File

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

View File

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