Commit a22baa48 authored by Philippe Kalaf's avatar Philippe Kalaf

Limit time/yield mode pressure to 12 bars (pressure sensor limited to 12 bars)

parent 5c58e3b3
......@@ -192,7 +192,9 @@ bool BrewControl::toggle_boiler()
void BrewControl::pressure_up(uint8_t value)
{
_pump_control.level_up(value);
// limit to 12 bars
if (get_current_pressure() <= 11.5)
_pump_control.level_up(value);
}
void BrewControl::pressure_down(uint8_t value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment