Mercurial > public > hwos_code
diff src/divemode.asm @ 444:d93d75ae01bf
Adjustable timeout for Divemode (Config 0x48)
author | heinrichsweikamp |
---|---|
date | Wed, 17 Aug 2016 09:50:37 +0200 |
parents | 23b58c4bc6aa |
children | 9edb1359ce43 |
line wrap: on
line diff
--- a/src/divemode.asm Tue Jul 26 12:25:02 2016 +0200 +++ b/src/divemode.asm Wed Aug 17 09:50:37 2016 +0200 @@ -628,10 +628,10 @@ infsnz timeout_counter,F incf timeout_counter2,F ; timeout is 15bits - 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