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]