Mercurial > public > ostc4
diff Discovery/Src/tMenuEditSetpoint.c @ 652:f6212495f34f
Allow setpoint starting at 0.4 ppO2:
Some rebreathers (e.g. Sentinel) start with a ppO2 of 0.4 Bar => modified range check to allow this value (was 0.5 before)
author | Ideenmodellierer |
---|---|
date | Mon, 19 Apr 2021 20:34:53 +0200 |
parents | 5f0d3dce5ef4 |
children | 1b995079c045 |
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditSetpoint.c Mon Apr 19 20:20:38 2021 +0200 +++ b/Discovery/Src/tMenuEditSetpoint.c Mon Apr 19 20:34:53 2021 +0200 @@ -282,8 +282,8 @@ new_cbar = (new_integer_part * 100) + new_fractional_part; - if(new_cbar < 50) - new_cbar = 50; + if(new_cbar < MIN_PPO2_SP_CBAR) + new_cbar = MIN_PPO2_SP_CBAR; if(new_cbar > 160) new_cbar = 160;