From 1739e2e481c7b5b03ec903f127ddba2ddd3d24f0 Mon Sep 17 00:00:00 2001 From: Edgar Bonet Date: Tue, 9 Aug 2022 12:08:41 +0200 Subject: [PATCH] Fix "unused variable" warnings in DS3231_alarm.ino These unused variables were triggering compiler warnings. As the ESP32 toolchain promotes warnings to errors, this made the CI workflow fail. --- examples/DS3231_alarm/DS3231_alarm.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/DS3231_alarm/DS3231_alarm.ino b/examples/DS3231_alarm/DS3231_alarm.ino index 903da7d1..f1d8b1ea 100644 --- a/examples/DS3231_alarm/DS3231_alarm.ino +++ b/examples/DS3231_alarm/DS3231_alarm.ino @@ -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;