Skip to content

Commit

Permalink
Merge pull request #241 from Zer0-bit/parked/nano
Browse files Browse the repository at this point in the history
Parked/nano
  • Loading branch information
Zer0-bit committed Jun 30, 2022
2 parents 5faac0f + 1630057 commit 5ab2144
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
; https://docs.platformio.org/page/projectconf.html

[platformio]
default_envs = blackpill
default_envs = nano
; src_dir = scales-calibration

[extra]
Expand Down
13 changes: 7 additions & 6 deletions src/gaggiuino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ HX711 LoadCell_2; //HX711 2

// Some vars are better global
//Timers
unsigned long pressureTimer = 0;
unsigned long thermoTimer = 0;
unsigned long scalesTimer = 0;
unsigned long flowTimer = 0;
unsigned long pageRefreshTimer = 0;
unsigned long brewingTimer = 0;
unsigned long pressureTimer = millis();
unsigned long thermoTimer = millis();
unsigned long scalesTimer = millis();
unsigned long flowTimer = millis();
unsigned long pageRefreshTimer = millis();
unsigned long brewingTimer = millis();

//volatile vars
volatile float kProbeReadValue; //temp val
Expand Down Expand Up @@ -1009,6 +1009,7 @@ void brewDetect() {
} else{
digitalWrite(valvePin, LOW);
brewTimer(0); // stopping timer
pump.set(0);
brewActive = false;
/* UPDATE VARIOUS INTRASHOT TIMERS and VARS */
brewingTimer = millis();
Expand Down

0 comments on commit 5ab2144

Please sign in to comment.