Skip to content

Commit 66ceabd

Browse files
committed
removed hungarian
rename tNew -> new_dt
1 parent f945ab8 commit 66ceabd

File tree

1 file changed

+3
-3
lines changed
  • src/rp2_common/hardware_rtc

1 file changed

+3
-3
lines changed

src/rp2_common/hardware_rtc/rtc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ bool rtc_set_alarm(const datetime_t *t, rtc_callback_t user_callback) {
183183
if (t->sec >= 0) s1 |= RTC_IRQ_SETUP_1_SEC_ENA_BITS | (((uint)t->sec) << RTC_IRQ_SETUP_1_SEC_LSB);
184184
else if (_alarm_repeats == CONTINUOUS_REPEAT_ON_SEC) {
185185
// repeatable every second! All entries are -1
186-
datetime_t tNew;
187-
rtc_get_datetime(&tNew);
188-
s1 = RTC_IRQ_SETUP_1_SEC_ENA_BITS | ((((uint)tNew.sec + 1) % 60) << RTC_IRQ_SETUP_1_SEC_LSB);
186+
datetime_t new_dt;
187+
rtc_get_datetime(&new_dt);
188+
s1 = RTC_IRQ_SETUP_1_SEC_ENA_BITS | ((((uint)new_dt.sec + 1) % 60) << RTC_IRQ_SETUP_1_SEC_LSB);
189189
}
190190

191191
rtc_hw->irq_setup_0 = s0;

0 commit comments

Comments
 (0)