Skip to content

Commit 2bc40bc

Browse files
committed
Remove readreq when changing continuous
1 parent 379e73a commit 2bc40bc

File tree

1 file changed

+1
-2
lines changed
  • ports/atmel-samd/supervisor

1 file changed

+1
-2
lines changed

ports/atmel-samd/supervisor/port.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ volatile bool hold_interrupt = false;
9898
#ifdef SAMD21
9999
static void rtc_set_continuous(bool continuous) {
100100
while (RTC->MODE0.STATUS.bit.SYNCBUSY);
101-
// TODO: DaveP: Do we need the RREQ here?
102-
RTC->MODE0.READREQ.reg = RTC_READREQ_RREQ | (continuous ? RTC_READREQ_RCONT : 0) | 0x0010;
101+
RTC->MODE0.READREQ.reg = (continuous ? RTC_READREQ_RCONT : 0) | 0x0010;
103102
while (RTC->MODE0.STATUS.bit.SYNCBUSY);
104103
}
105104

0 commit comments

Comments
 (0)