Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0-bit committed Jun 25, 2023
1 parent edf5733 commit 06d2b68
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/gaggiuino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static void sensorsRead(void) {
sensorsReadPressure();
calculateWeightAndFlow();
updateStartupTimer();
readTankWaterLevel(1000);
readTankWaterLevel();
doLed();
}

Expand Down Expand Up @@ -243,14 +243,14 @@ static void calculateWeightAndFlow(void) {
}

// return the reading in mm of the tank water level.
static void readTankWaterLevel(uint32_t interval) {
// if (lcdCurrentPageId == NextionPage::Home) {
// static uint32_t tof_timeout = millis();
// if (millis() >= tof_timeout) {
currentState.waterLvl = tof.readLvl();
// tof_timeout = millis() + interval;
// }
// }
static void readTankWaterLevel(void) {
if (lcdCurrentPageId == NextionPage::Home) {
// static uint32_t tof_timeout = millis();
// if (millis() >= tof_timeout) {
currentState.waterLvl = tof.readLvl();
// tof_timeout = millis() + 500;
// }
}
}

//##############################################################################################################################
Expand Down

0 comments on commit 06d2b68

Please sign in to comment.