comparison src/p2_deco.c @ 323:19f7dc2b12d6

FIX minor assert: separate diluant list means current gas can go up to 10.
author jDG
date Fri, 12 Jun 2015 22:18:21 +0200
parents fe06f1d1a285
children 0e9dcdcf03c1
comparison
equal deleted inserted replaced
322:fe06f1d1a285 323:19f7dc2b12d6
727 // 727 //
728 // Output: sim_gas_last_depth = 0..5, temp_depth_limit. 728 // Output: sim_gas_last_depth = 0..5, temp_depth_limit.
729 // 729 //
730 static void gas_switch_find_current(void) 730 static void gas_switch_find_current(void)
731 { 731 {
732 assert( 0 < char_I_current_gas && char_I_current_gas <= (NUM_GAS+1) ); 732 assert( 0 < char_I_current_gas && char_I_current_gas <= (2*NUM_GAS) );
733 733
734 if( char_I_current_gas <= NUM_GAS ) // Gas1..Gas5 734 if( char_I_current_gas <= NUM_GAS ) // Gas1..Gas5
735 { 735 {
736 sim_gas_last_used = char_I_current_gas; 736 sim_gas_last_used = char_I_current_gas;
737 737