Mercurial > public > ostc4
diff Discovery/Src/settings.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 | 890440ab993a |
line wrap: on
line diff
--- a/Discovery/Src/settings.c Mon Apr 19 20:20:38 2021 +0200 +++ b/Discovery/Src/settings.c Mon Apr 19 20:34:53 2021 +0200 @@ -682,9 +682,9 @@ */ for(int i=1; i<=NUM_GASES;i++) { - if(Settings.setpoint[i].setpoint_cbar < 50) + if(Settings.setpoint[i].setpoint_cbar < MIN_PPO2_SP_CBAR) { - Settings.setpoint[i].setpoint_cbar = 50; + Settings.setpoint[i].setpoint_cbar = MIN_PPO2_SP_CBAR; corrections++; } if(Settings.setpoint[i].setpoint_cbar > 160)