Gissio / radpro

Custom firmware for Geiger counters/radiation meters (FS2011, Bosean FS-600, FS-1000, FS-5000, FNIRSI GC-01)
MIT License
154 stars 20 forks source link

Rad Pro: 12-hour time format error #75

Closed oOblik closed 3 months ago

oOblik commented 3 months ago

https://github.com/Gissio/radpro/blob/e57e4c57872989e01ccd306a02a22a6d0d17a5a5/platform.io/src/display.c#L949

Something like this instead?

strcatUInt32(buffer, (dateTime.hour % 12) ? (dateTime.hour % 12) : 12, 1);

Gissio commented 3 months ago

Fixed.

Thanks for the contribution!