Commit 87a6e034 authored by Philippe Kalaf's avatar Philippe Kalaf

Fixed small bug in set_shot_pressure()

parent 698800f8
Pipeline #29772826 passed with stages
in 1 minute and 4 seconds
......@@ -119,11 +119,12 @@ float BrewControl::get_shot_temperature()
void BrewControl::set_shot_pressure(float pressure)
{
if(pressure <= 0)
_target_shot_pressure = 0;
else if(pressure >= 12)
_target_shot_pressure = 12;
_target_shot_pressure = pressure;
if (pressure <= 0)
_target_shot_pressure = 0;
else if (pressure >= 12)
_target_shot_pressure = 12;
else
_target_shot_pressure = pressure;
}
// Return pressure in bars
......
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