# HG changeset patch # User JeanDo # Date 1305848099 -7200 # Node ID 06299199dfb9aa4408ec65a35864104eb2ee8335 # Parent 2144f19fa1eb806588b6634239c959c46572daba Fix bad max depth value (fix sub16 to avoid trashing sub_b). diff -r 2144f19fa1eb -r 06299199dfb9 code_part1/OSTC_code_asm_part1/divemode.asm --- a/code_part1/OSTC_code_asm_part1/divemode.asm Fri May 20 00:48:30 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/divemode.asm Fri May 20 01:34:59 2011 +0200 @@ -1436,16 +1436,16 @@ btfsc divemode call set_min_temp ; store min. temp if required - bcf temp_changed ; Display temperature? + bcf temp_changed ; Display temperature? SAFE_2BYTE_COPY temperature,lo movf lo,W cpfseq last_temperature+0 - bsf temp_changed ; Yes + bsf temp_changed ; Yes movf hi,W cpfseq last_temperature+1 - bsf temp_changed ; Yes + bsf temp_changed ; Yes btfsc temp_changed - call PLED_temp_divemode ; Displays temperature + call PLED_temp_divemode ; Displays temperature bcf pres_changed ; Display new depth? SAFE_2BYTE_COPY amb_pressure, lo @@ -1512,7 +1512,7 @@ clrf sub_a+1 SAFE_2BYTE_COPY rel_pressure, sub_b call sub16 ; sub_c = sub_a - sub_b - + btfss neg_flag bra set_dive_modes2 ; too shallow (rel_pressure