diff 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
line wrap: on
line diff
--- a/code_part1/OSTC_code_c_part2/p2_deco.c	Sat May 07 12:13:08 2011 +0200
+++ b/code_part1/OSTC_code_c_part2/p2_deco.c	Sat May 07 14:08:51 2011 +0200
@@ -1396,7 +1396,7 @@
 
  		char_O_diluent = (unsigned char)(pres_diluent/pres_respiration*100.0 + 0.5);
 
- 		if( flush_ppO2 > 2.45 ) flush_ppO2 = 2.55;
+ 		if( flush_ppO2 > 2.545) flush_ppO2 = 2.55;
  		if( flush_ppO2 < 0.0  ) flush_ppO2 = 0.0;
  		char_O_flush_ppO2 = (unsigned char)(flush_ppO2*100.0 + 0.5);
     }