From 9369ef2077076537860d63727bab2b8906cd2f57 Mon Sep 17 00:00:00 2001 From: qeeg Date: Thu, 11 Mar 2021 21:13:57 -0600 Subject: [PATCH] Actually fix the T1000 RTC --- src/machine/m_xt_t1000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine/m_xt_t1000.c b/src/machine/m_xt_t1000.c index d7a907012..122b93aa4 100644 --- a/src/machine/m_xt_t1000.c +++ b/src/machine/m_xt_t1000.c @@ -239,7 +239,7 @@ tc8521_time_get(uint8_t *regs, struct tm *tm) else tm->tm_hour = ((nibbles(TC8521_HOUR) % 12) + (regs[TC8521_HOUR10] & 0x02) ? 12 : 0); - tm->tm_wday = TC8521_WEEKDAY; + tm->tm_wday = regs[TC8521_WEEKDAY]; tm->tm_mday = nibbles(TC8521_DAY); tm->tm_mon = (nibbles(TC8521_MONTH) - 1); tm->tm_year = (nibbles(TC8521_YEAR) + 1980);