Skip to content

Commit

Permalink
Bugfix: Inonsistent Brew & Steam switch behaviours rancilio-pid#413 r…
Browse files Browse the repository at this point in the history
…ancilio-pid#414

Debounce on Brew trigger. Steam trigger code duplication disabled debounce.  Debounce times to 20ms.
Added variable brewSwitchLongPress and set to 500ms.
Rename BREWSWITCHDELAY to SHOTTIMERDISPLAYDELAY, adapt comments to fit to functionality.
Rename brewSwitchLongPress -> brewTriggerLongPress and
lastButtonStateBrew -> lastStateBrewTrigger
clean brewvoid
rename a lot of variables to naming scheme
  • Loading branch information
genkigenki authored and LoQue90 committed Dec 26, 2023
1 parent 81ce024 commit 09ea6b3
Show file tree
Hide file tree
Showing 9 changed files with 179 additions and 221 deletions.
4 changes: 2 additions & 2 deletions src/InfluxDB.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ void sendInflux() {
influxSensor.addField("Ki", bPID.GetKi());
influxSensor.addField("Kd", bPID.GetKd());
influxSensor.addField("pidON", pidON);
influxSensor.addField("brewtime", brewtime);
influxSensor.addField("preinfusionpause", preinfusionpause);
influxSensor.addField("brewtime", brewTime);
influxSensor.addField("preinfusionpause", preinfusionPause);
influxSensor.addField("preinfusion", preinfusion);
influxSensor.addField("steamON", steamON);

Expand Down
2 changes: 1 addition & 1 deletion src/MQTT.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ String getMachineName(MACHINE machine) {
* MQTT is also using maxWifiReconnects!
*/
void checkMQTT() {
if (offlineMode == 1 || brewcounter > kBrewIdle) return;
if (offlineMode == 1 || brewCounter > kBrewIdle) return;

if ((millis() - lastMQTTConnectionAttempt >= wifiConnectionDelay) && (MQTTReCnctCount <= maxWifiReconnects)) {
if (!mqtt.connected()) {
Expand Down
55 changes: 0 additions & 55 deletions src/brewscaleini.h

This file was deleted.

Loading

0 comments on commit 09ea6b3

Please sign in to comment.