Skip to content

Commit

Permalink
Fix ThingSpeak timer
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Nov 29, 2020
1 parent f2235b5 commit 204a27e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,17 @@ void loop()
}
if (config.brewfather.update)
{
Log.notice(F("Resetting Brewer's Friend frequency timer to %l minutes." CR), config.brewersfriend.freq);
bfTimer.detach();
bfTimer.attach(config.brewfather.freq * 60, setDoBrewfTarget);
Log.notice(F("Resetting Brewfather frequency timer to %l minutes." CR), config.brewfather.freq);
brewfTimer.detach();
brewfTimer.attach(config.brewfather.freq * 60, setDoBrewfTarget);
config.brewfather.update = false;
saveConfig();
}
if (config.thingspeak.update)
{
Log.notice(F("Resetting ThingSpeak frequency timer to %l minutes." CR), config.thingspeak.freq);
bfTimer.detach();
bfTimer.attach(config.thingspeak.freq * 60, setDoTSTarget);
tsTimer.detach();
tsTimer.attach(config.thingspeak.freq * 60, setDoTSTarget);
config.thingspeak.update = false;
saveConfig();
}
Expand Down

0 comments on commit 204a27e

Please sign in to comment.