Skip to content

Commit

Permalink
Fix #32
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaswilde committed Apr 3, 2022
1 parent 1d7d920 commit d43a80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solar-battery-charger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void executeRecharge(int percentage, int voltage, int current, int power){
GSheet.begin(myClientEmail, myProjectId, myPrivateKey);

String date = ThingSpeak.readCreatedAt(myChannelNumber, myWriteAPIKey);
if (doClear && cc.shouldClearChannel(date)) cc.clearChannel(myUserAPIKey);
if (doClear && (timeStatus() != timeNotSet) && cc.shouldClearChannel(date)) cc.clearChannel(myUserAPIKey);
display.clearDisplay();
display.setCursor(0,0);
delay(DELAY_SCREEN1*1e3);
Expand Down

0 comments on commit d43a80a

Please sign in to comment.