Skip to content

Commit 4efd32c

Browse files
committed
Fix incorrect 12-hour RTC PM offset calculation
1 parent fd53caa commit 4efd32c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TAMA5MemoryRule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ void TAMA5MemoryRule::UpdateRTC()
201201
{
202202
int h10 = t[TAMA6_RTC_HOUR_10];
203203
hour += (h10 & 1) * 10;
204-
hour += (h10 & 2) * 12;
204+
hour += ((h10 & 2) >> 1) * 12;
205205
}
206206

207207
diff = hour + (elapsed % 24);

0 commit comments

Comments
 (0)