Implement Haruki's ClockRenderer and broadcast decomposeTime across various files.

This commit is contained in:
Jason P
2025-10-13 22:29:42 -05:00
parent 849a749b81
commit 2f65721774
8 changed files with 90 additions and 156 deletions

View File

@@ -258,9 +258,8 @@ bool RangeTestModuleRadio::appendFile(const meshtastic_MeshPacket &mp)
hms = (hms + SEC_PER_DAY) % SEC_PER_DAY;
// Tear apart hms into h:m:s
int hour = hms / SEC_PER_HOUR;
int min = (hms % SEC_PER_HOUR) / SEC_PER_MIN;
int sec = (hms % SEC_PER_HOUR) % SEC_PER_MIN; // or hms % SEC_PER_MIN
int hour, min, sec;
graphics::decomposeTime(rtc_sec, hour, min, sec);
fileToAppend.printf("%02d:%02d:%02d,", hour, min, sec); // Time
} else {