From 1784a1488aa625c7eb769a89e7f5b75ceaa761bc Mon Sep 17 00:00:00 2001 From: Lee Bussy Date: Sat, 28 Nov 2020 12:02:33 -0600 Subject: [PATCH] Save BPM on each tick --- src/bubbles.cpp | 1 + src/main.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/bubbles.cpp b/src/bubbles.cpp index bfe89ac..041f10c 100644 --- a/src/bubbles.cpp +++ b/src/bubbles.cpp @@ -60,6 +60,7 @@ bool Bubbles::update() bubAvg.push(lastBpm); sampleSize = tempVesAvg.size(); + saveBpm(); return true; } diff --git a/src/main.cpp b/src/main.cpp index df6d1c5..b7f0a8b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -107,6 +107,7 @@ void loop() urlTarget.detach(); urlTarget.attach(config.urltarget.freq * 60, setDoURLTarget); config.urltarget.update = false; + saveConfig(); } if (config.brewersfriend.update) { @@ -114,6 +115,7 @@ void loop() bfTimer.detach(); bfTimer.attach(config.brewersfriend.freq * 60, setDoBFTarget); config.brewersfriend.update = false; + saveConfig(); } if (config.brewfather.update) { @@ -121,6 +123,7 @@ void loop() bfTimer.detach(); bfTimer.attach(config.brewfather.freq * 60, setDoBrewfTarget); config.brewfather.update = false; + saveConfig(); } serialLoop(); yield();