Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 674:3927bc5019c9
show some feedback if marker was set
author | heinrichsweikamp |
---|---|
date | Mon, 10 Dec 2012 16:55:18 +0100 |
parents | 7e651625d4c0 |
children | 6e456a6398e0 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode_menu.asm Mon Dec 10 16:12:22 2012 +0100 +++ b/code_part1/OSTC_code_asm_part1/divemode_menu.asm Mon Dec 10 16:55:18 2012 +0100 @@ -251,7 +251,13 @@ movlw d'6' ; Type of Alarm (Manual Marker) movwf AlarmType ; Copy to Alarm Register bsf event_occured ; Set Event Flag - bra timeout_divemenu2 ; quit menu! + + ; save snapshot of depth and time + SAFE_2BYTE_COPY rel_pressure,marker_depth + SAFE_2BYTE_COPY divemins,marker_time + movff divesecs,marker_time+2 + + bra timeout_divemenu2 ; quit menu! toggle_stopwatch: bsf reset_average_depth ; Average Depth will be resetted in divemode.asm @@ -808,7 +814,7 @@ btfss dekostop_active call PLED_display_ndl_mask ; Clear deco data, display nostop time - btfss decoplan_invalid ; The decoplan needs to updated + btfsc decoplan_invalid ; The decoplan needs to updated bra timeout_divemenu2a ; Yes, skip update btfsc dekostop_active