Mercurial > public > hwos_code
diff src/divemode.asm @ 385:b075fa71b659
BUGFIX: +5min for stopwatch during simulation did not work
author | heinrichsweikamp |
---|---|
date | Wed, 07 Oct 2015 13:14:09 +0200 |
parents | 6f3530eb48f9 |
children | 3c55627d5f8f |
line wrap: on
line diff
--- a/src/divemode.asm Tue Oct 06 12:55:01 2015 +0200 +++ b/src/divemode.asm Wed Oct 07 13:14:09 2015 +0200 @@ -1035,6 +1035,14 @@ addwf divemins+0,F movlw .0 addwfc divemins+1,F ; Add 5 mins + movlw LOW (.5*.60) + addwf average_divesecs+0,F + movlw HIGH (.5*.60) + addwfc average_divesecs+1,F ; Add 5*60 seconds + movlw LOW (.5*.60) + addwf total_divetime_seconds+0,F + movlw HIGH (.5*.60) + addwfc total_divetime_seconds+1,F ; Add 5*60 seconds movlw .5 movwf up ; counter ; 1min mode @@ -1392,7 +1400,7 @@ banksel char_I_first_gas incf char_I_first_gas,F ; 0-4 -> 1-5 banksel common - rcall calc_deko_divemode_sensor ; External sensor stuff + call calc_deko_divemode_sensor ; External sensor stuff return diveloop_boot: