We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc9bd29 commit 6797e7aCopy full SHA for 6797e7a
Daily_Cheer_Automaton/Arduino/autocheer.ino
@@ -202,11 +202,12 @@ void setup() {
202
void loop() {
203
// put your main code here, to run repeatedly:
204
205
+ DateTime theTime;
206
// check time
207
if (OBSERVE_DST == 1) {
- DateTime theTime = dst_rtc.calculateTime(rtc.now()); // takes into account DST
208
+ theTime = dst_rtc.calculateTime(rtc.now()); // takes into account DST
209
} else {
- DateTime theTime = rtc.now(); // use if you don't need DST
210
+ theTime = rtc.now(); // use if you don't need DST
211
}
212
213
printTheTime(theTime);
0 commit comments