comparison 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
comparison
equal deleted inserted replaced
651:7b5a063f080f 652:f6212495f34f
280 { 280 {
281 evaluateNewString(editId, &new_integer_part, &new_fractional_part, &newDepth, 0); 281 evaluateNewString(editId, &new_integer_part, &new_fractional_part, &newDepth, 0);
282 282
283 new_cbar = (new_integer_part * 100) + new_fractional_part; 283 new_cbar = (new_integer_part * 100) + new_fractional_part;
284 284
285 if(new_cbar < 50) 285 if(new_cbar < MIN_PPO2_SP_CBAR)
286 new_cbar = 50; 286 new_cbar = MIN_PPO2_SP_CBAR;
287 287
288 if(new_cbar > 160) 288 if(new_cbar > 160)
289 new_cbar = 160; 289 new_cbar = 160;
290 290
291 new_integer_part = new_cbar / 100; 291 new_integer_part = new_cbar / 100;