Fermenter split into multiple files 3 + Fermenter Program 2
This commit is contained in:
parent
1e1a1c8a5b
commit
732f88aec3
@ -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};
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user