summaryrefslogtreecommitdiff
path: root/firmware/drivers/rtc/rtc_mc13783.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/rtc/rtc_mc13783.c')
-rw-r--r--firmware/drivers/rtc/rtc_mc13783.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/rtc/rtc_mc13783.c b/firmware/drivers/rtc/rtc_mc13783.c
index 9f922a10a6..9d2c50cf11 100644
--- a/firmware/drivers/rtc/rtc_mc13783.c
+++ b/firmware/drivers/rtc/rtc_mc13783.c
@@ -254,9 +254,9 @@ bool rtc_check_alarm_flag(void)
bool rtc_enable_alarm(bool enable)
{
if (enable)
- mc13783_clear(MC13783_INTERRUPT_MASK1, MC13783_TODA);
+ mc13783_clear(MC13783_INTERRUPT_MASK1, MC13783_TODAM);
else
- mc13783_set(MC13783_INTERRUPT_MASK1, MC13783_TODA);
+ mc13783_set(MC13783_INTERRUPT_MASK1, MC13783_TODAM);
return false;
}