Skip to content

Commit e7324fa

Browse files
committed
fixing pre-commit stuff
1 parent e136cbd commit e7324fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ports/atmel-samd/common-hal/alarm/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ samd_sleep_source_t alarm_get_wakeup_cause(void) {
6969
}
7070
if (!fake_sleep && RSTC->RCAUSE.bit.BACKUP) {
7171
// This is checked during rtc_init to cache TAMPID if necessary
72-
if (pin_wake ||RTC->MODE0.TAMPID.reg) {
72+
if (pin_wake || RTC->MODE0.TAMPID.reg) {
7373
pin_wake = true;
7474
return SAMD_WAKEUP_GPIO;
7575
}

ports/atmel-samd/common-hal/alarm/time/TimeAlarm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void time_alarm_callback(void) {
8181
}
8282

8383
bool alarm_time_timealarm_woke_this_cycle(void) {
84-
if (timealarm_on && (((uint32_t)port_get_raw_ticks(NULL)<<4) > RTC->MODE0.COMP[1].reg)) {
84+
if (timealarm_on && (((uint32_t)port_get_raw_ticks(NULL) << 4) > RTC->MODE0.COMP[1].reg)) {
8585
woke_up = true;
8686
}
8787
return woke_up;
@@ -129,7 +129,7 @@ void alarm_time_timealarm_set_alarms(bool deep_sleep, size_t n_alarms, const mp_
129129
timealarm_on = true;
130130
// Set COMP1 for fake sleep. This will be read and reset for real deep sleep anyways.
131131
// RTC->MODE0.COMP[1].reg = wakeup_in_ticks;
132-
RTC->MODE0.COMP[1].reg = ((uint32_t)port_get_raw_ticks(NULL)+wakeup_in_ticks)<<4;
132+
RTC->MODE0.COMP[1].reg = ((uint32_t)port_get_raw_ticks(NULL) + wakeup_in_ticks) << 4;
133133
while ((RTC->MODE0.SYNCBUSY.reg & (RTC_MODE0_SYNCBUSY_COMP1)) != 0) {
134134
}
135135
RTC->MODE0.INTFLAG.reg = RTC_MODE0_INTFLAG_CMP1;

0 commit comments

Comments
 (0)