Skip to content

Commit

Permalink
Update Pump.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Loic74650 committed May 6, 2020
1 parent 1482df9 commit cc41bde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/Pump/Pump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ void Pump::ClearErrors()
//tank level status
bool Pump::TankLevel()
{
return digitalRead(tanklevelpin);

return (digitalRead(tanklevelpin) == TANK_FULL);
}

//Return the percentage fill usage of the tank based on the past consumption
Expand Down

0 comments on commit cc41bde

Please sign in to comment.