ports/emulators/pcem/files/patch-src_rtc__tc8521.c
Stefan Eßer a03851a452 emulators/pcem: update to version 17
The repository used by this port is actively maintained and there
"dev" branch contains updates and fixes (including for builds on
aarch64).

Since the maintainer had not updated the port for more than 1 year
and it had become deprecated, I'm taking over maintainership.
2023-10-15 15:24:12 +02:00

11 lines
482 B
C

--- src/rtc_tc8521.c.orig 2020-12-01 19:49:05 UTC
+++ src/rtc_tc8521.c
@@ -167,7 +167,7 @@ static void tc8521_set_nvrram(uint8_t *nvrram, struct
{
nvrram[TC8521_HOUR1] = (cur_time_tm->tm_hour % 12) % 10;
nvrram[TC8521_HOUR10] = ((cur_time_tm->tm_hour % 12) / 10)
- | (cur_time_tm->tm_hour >= 12) ? 2 : 0;
+ | ((cur_time_tm->tm_hour >= 12) ? 2 : 0);
}
nvrram[TC8521_WEEKDAY] = cur_time_tm->tm_wday;
nvrram[TC8521_DAY1] = cur_time_tm->tm_mday % 10;