Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 651:7b5a063f080f | 652:f6212495f34f |
|---|---|
| 680 } | 680 } |
| 681 /* SSetpointLine setpoint[1 + NUM_GASES]; | 681 /* SSetpointLine setpoint[1 + NUM_GASES]; |
| 682 */ | 682 */ |
| 683 for(int i=1; i<=NUM_GASES;i++) | 683 for(int i=1; i<=NUM_GASES;i++) |
| 684 { | 684 { |
| 685 if(Settings.setpoint[i].setpoint_cbar < 50) | 685 if(Settings.setpoint[i].setpoint_cbar < MIN_PPO2_SP_CBAR) |
| 686 { | 686 { |
| 687 Settings.setpoint[i].setpoint_cbar = 50; | 687 Settings.setpoint[i].setpoint_cbar = MIN_PPO2_SP_CBAR; |
| 688 corrections++; | 688 corrections++; |
| 689 } | 689 } |
| 690 if(Settings.setpoint[i].setpoint_cbar > 160) | 690 if(Settings.setpoint[i].setpoint_cbar > 160) |
| 691 { | 691 { |
| 692 Settings.setpoint[i].setpoint_cbar = 160; | 692 Settings.setpoint[i].setpoint_cbar = 160; |
