summaryrefslogtreecommitdiff
path: root/firmware/drivers/rtc/rtc_ds1339_ds3231.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/rtc/rtc_ds1339_ds3231.c')
-rw-r--r--firmware/drivers/rtc/rtc_ds1339_ds3231.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/rtc/rtc_ds1339_ds3231.c b/firmware/drivers/rtc/rtc_ds1339_ds3231.c
index df67fed735..7396c2e0a1 100644
--- a/firmware/drivers/rtc/rtc_ds1339_ds3231.c
+++ b/firmware/drivers/rtc/rtc_ds1339_ds3231.c
@@ -33,14 +33,14 @@ void rtc_init(void)
33 /* read one byte from RTC; 0 on success */ 33 /* read one byte from RTC; 0 on success */
34 rtc_detected = !sw_i2c_read(RTC_ADDR, 0, &byte, 1); 34 rtc_detected = !sw_i2c_read(RTC_ADDR, 0, &byte, 1);
35 35
36#ifdef HAVE_ALARM_MOD 36#ifdef HAVE_RTC_ALARM
37 /* Check + save alarm bit first, before the power thread starts watching */ 37 /* Check + save alarm bit first, before the power thread starts watching */
38 rtc_check_alarm_started(false); 38 rtc_check_alarm_started(false);
39#endif 39#endif
40 40
41} 41}
42 42
43#ifdef HAVE_ALARM_MOD 43#ifdef HAVE_RTC_ALARM
44 44
45/* check whether the unit has been started by the RTC alarm function */ 45/* check whether the unit has been started by the RTC alarm function */
46/* (check for A2F, which => started using wakeup alarm) */ 46/* (check for A2F, which => started using wakeup alarm) */
@@ -117,7 +117,7 @@ bool rtc_enable_alarm(bool enable)
117 return false; /* all ok */ 117 return false; /* all ok */
118} 118}
119 119
120#endif /* HAVE_ALARM_MOD */ 120#endif /* HAVE_RTC_ALARM */
121 121
122int rtc_read_datetime(unsigned char* buf) 122int rtc_read_datetime(unsigned char* buf)
123{ 123{