From ef0c3549d290b5b9d5df75df63e589c8141064ae Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 6 Dec 2023 23:28:16 -0500 Subject: [PATCH] Attempt but fail to indicate PM. --- Machines/PCCompatible/RTC.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Machines/PCCompatible/RTC.hpp b/Machines/PCCompatible/RTC.hpp index a31bd9fd2..e5286286c 100644 --- a/Machines/PCCompatible/RTC.hpp +++ b/Machines/PCCompatible/RTC.hpp @@ -46,7 +46,9 @@ class RTC { if(statusB_ & 2) { return bcd(time_date->tm_hour); } - return bcd(1 + (time_date->tm_hour + 11)%12); + return +// ((time_date->tm_hour > 12) ? 0x80 : 0x00) | + bcd(1 + (time_date->tm_hour + 11)%12); break; case 0x05: return 0; // Hours alarm case 0x06: return bcd(time_date->tm_wday + 1); // Day of the week [Sunday = 1]