Mercurial > public > mk2
comparison code_part1/OSTC_code_c_part2/p2_deco.c @ 326:a7ed48daf597
Fix minor rounding error in ppO2[flush].
author | JeanDo |
---|---|
date | Sat, 07 May 2011 14:08:51 +0200 |
parents | b7940978edc9 |
children | 4ccdc72ec0e5 |
comparison
equal
deleted
inserted
replaced
325:4a28d7a1c620 | 326:a7ed48daf597 |
---|---|
1394 if( pres_diluent > pres_respiration ) // new in v.101 | 1394 if( pres_diluent > pres_respiration ) // new in v.101 |
1395 pres_diluent = pres_respiration; // new in v.101 | 1395 pres_diluent = pres_respiration; // new in v.101 |
1396 | 1396 |
1397 char_O_diluent = (unsigned char)(pres_diluent/pres_respiration*100.0 + 0.5); | 1397 char_O_diluent = (unsigned char)(pres_diluent/pres_respiration*100.0 + 0.5); |
1398 | 1398 |
1399 if( flush_ppO2 > 2.45 ) flush_ppO2 = 2.55; | 1399 if( flush_ppO2 > 2.545) flush_ppO2 = 2.55; |
1400 if( flush_ppO2 < 0.0 ) flush_ppO2 = 0.0; | 1400 if( flush_ppO2 < 0.0 ) flush_ppO2 = 0.0; |
1401 char_O_flush_ppO2 = (unsigned char)(flush_ppO2*100.0 + 0.5); | 1401 char_O_flush_ppO2 = (unsigned char)(flush_ppO2*100.0 + 0.5); |
1402 } | 1402 } |
1403 | 1403 |
1404 if( pres_diluent > ppWater ) // new in v.101 | 1404 if( pres_diluent > ppWater ) // new in v.101 |