Skip to content

Commit

Permalink
[Software] Added display backlight lighting when alarm starts ringing.
Browse files Browse the repository at this point in the history
  • Loading branch information
RICCIARDI-Adrien committed Jun 17, 2020
1 parent ca45c10 commit f92d7bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Software/Sources/Main.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,11 @@ static inline void MainShowDefaultView(void)

// Is it time to ring ?
RTCGetAlarm(&Time_Alarm);
if (ButtonsIsAlarmEnabled() && (Time.Hours == Time_Alarm.Hours) && (Time.Minutes == Time_Alarm.Minutes) && (Time.Seconds == 0x00)) RingStart();
if (ButtonsIsAlarmEnabled() && (Time.Hours == Time_Alarm.Hours) && (Time.Minutes == Time_Alarm.Minutes) && (Time.Seconds == 0x00))
{
RingStart();
DisplayTurnBacklightOn(); // Also light display
}
}

/** Display a menu allowing to choose which clock parameter to configure. */
Expand Down

0 comments on commit f92d7bf

Please sign in to comment.