There was an error while loading. Please reload this page.
1 parent 3b2943e commit 49f2f11Copy full SHA for 49f2f11
1 file changed
src/time.c
@@ -68,7 +68,7 @@ void getrtc(struct m65_tm* tm)
68
tm->tm_wday = 0;
69
tm->tm_isdst = 0;
70
71
- switch (detect_target() & 0xf) {
+ switch (detect_target()) {
72
case TARGET_EMULATION:
73
case TARGET_MEGA65R2:
74
case TARGET_MEGA65R3:
@@ -119,7 +119,7 @@ void setrtc(struct m65_tm* tm)
119
return;
120
}
121
122
123
124
125
// Unlock RTC registers
0 commit comments