Mercurial > public > hwos_code
diff src/tft_outputs.asm @ 444:d93d75ae01bf
Adjustable timeout for Divemode (Config 0x48)
author | heinrichsweikamp |
---|---|
date | Wed, 17 Aug 2016 09:50:37 +0200 |
parents | 23b58c4bc6aa |
children | b4f28ab23b87 |
line wrap: on
line diff
--- a/src/tft_outputs.asm Tue Jul 26 12:25:02 2016 +0200 +++ b/src/tft_outputs.asm Wed Aug 17 09:50:37 2016 +0200 @@ -1600,10 +1600,10 @@ call TFT_warning_set_window_com call TFT_standard_color STRCPY 0x94 ; "End of dive" icon - movlw LOW divemode_timeout - movwf sub_a+0 - movlw HIGH divemode_timeout - movwf sub_a+1 + movff opt_diveTimeout,WREG ; in [min] + mullw .60 + movff PRODL,sub_a+0 + movff PRODH,sub_a+1 ; in [s] movff timeout_counter,sub_b+0 movff timeout_counter2,sub_b+1 call subU16 ; sub_c = sub_a - sub_b (with UNSIGNED values)