Skip to content

Commit

Permalink
Merge pull request #265 from edgar-bonet/fix-warning
Browse files Browse the repository at this point in the history
Fix CI failure due to unused variables
  • Loading branch information
caternuson authored Aug 9, 2022
2 parents 6c257da + 1739e2e commit a944a78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/DS3231_alarm/DS3231_alarm.ino
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ void loop() {
DateTime alarm1 = rtc.getAlarm1();
Ds3231Alarm1Mode alarm1mode = rtc.getAlarm1Mode();
char alarm1Date[12] = "DD hh:mm:ss";
rtc.getAlarm1().toString(alarm1Date);
alarm1.toString(alarm1Date);
Serial.print(" [Alarm1: ");
Serial.print(alarm1Date);
Serial.print(", Mode: ");
switch (rtc.getAlarm1Mode()) {
switch (alarm1mode) {
case DS3231_A1_PerSecond: Serial.print("PerSecond"); break;
case DS3231_A1_Second: Serial.print("Second"); break;
case DS3231_A1_Minute: Serial.print("Minute"); break;
Expand Down

0 comments on commit a944a78

Please sign in to comment.