Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/isr.asm @ 357:562f1bc79f3c 64kByte Logbook
Bugfix: Wake-up into divemode with 1.91alpha
author | Heinrichsweikamp |
---|---|
date | Tue, 07 Jun 2011 13:06:14 +0200 |
parents | ba0f30f3d560 |
children | 88660a400338 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/isr.asm Mon Jun 06 18:50:26 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/isr.asm Tue Jun 07 13:06:14 2011 +0200 @@ -343,12 +343,17 @@ ; Increase re-setable average depth divetime counter incf average_divesecs+0,F ; increase stopwatch registers btfsc STATUS,Z - incf average_divesecs+1,F ; increase stopwatch registers - + incf average_divesecs+1,F ; increase stopwatch registers +; Increase total divetime (Regardless of CF01) + incf total_divetime_seconds+0,F ; increase stopwatch registers + btfsc STATUS,Z + incf total_divetime_seconds+1,F ; increase stopwatch registers + btfss divemode2 ; displayed divetime is running? bra RTCisr2 ; No (e.g. too shallow) - incf divesecs,F ; increase divetime registers +; increase divetime registers (Displayed dive time) + incf divesecs,F movlw d'59' cpfsgt divesecs bra RTCisr1a