Skip to content

Commit 49f2f11

Browse files
committed
Revert "fix(time): only look at board major version to determine rtc chip #75"
This reverts commit 3b2943e.
1 parent 3b2943e commit 49f2f11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/time.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void getrtc(struct m65_tm* tm)
6868
tm->tm_wday = 0;
6969
tm->tm_isdst = 0;
7070

71-
switch (detect_target() & 0xf) {
71+
switch (detect_target()) {
7272
case TARGET_EMULATION:
7373
case TARGET_MEGA65R2:
7474
case TARGET_MEGA65R3:
@@ -119,7 +119,7 @@ void setrtc(struct m65_tm* tm)
119119
return;
120120
}
121121

122-
switch (detect_target() & 0xf) {
122+
switch (detect_target()) {
123123
case TARGET_MEGA65R2:
124124
case TARGET_MEGA65R3:
125125
// Unlock RTC registers

0 commit comments

Comments
 (0)