1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-28 09:54:49 +00:00

Merge pull request #1266 from TomHarte/DayOfMonth

Fix RTC day of the month, turbo keyboard resets.
This commit is contained in:
Thomas Harte 2023-12-10 23:11:57 -05:00 committed by GitHub
commit 44a19e8306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -430,7 +430,7 @@ class KeyboardController {
pic_.apply_edge<1>(false);
[[fallthrough]];
case Mode::Reset:
reset_delay_ = 5; // Arbitrarily.
reset_delay_ = 15; // Arbitrarily.
break;
}
}

View File

@ -53,7 +53,7 @@ class RTC {
break;
case 0x05: return 0; // Hours alarm
case 0x06: return bcd(time_date->tm_wday + 1); // Day of the week [Sunday = 1]
case 0x07: return bcd(time_date->tm_mon); // Date of the Month [1-31]
case 0x07: return bcd(time_date->tm_mday); // Date of the Month [1-31]
case 0x08: return bcd(time_date->tm_mon + 1); // Month [1-12]
case 0x09: return bcd(time_date->tm_year % 100); // Year [0-99]
case 0x32: return bcd(19 + time_date->tm_year / 100); // Century