diff src/divemenu_tree.asm @ 401:7be43d886bb1

Logbook marker can be set in dive mode menu (OC only)
author heinrichsweikamp
date Sat, 09 Jan 2016 11:42:01 +0100
parents f0828110d864
children 6e60012bb3fc
line wrap: on
line diff
--- a/src/divemenu_tree.asm	Thu Dec 10 13:36:47 2015 +0100
+++ b/src/divemenu_tree.asm	Sat Jan 09 11:42:01 2016 +0100
@@ -35,13 +35,20 @@
         bcf     is_bailout_menu
         movlw   .1
         movwf   menupos                 ; Set to first option in divemode menu
-    MENU_BEGIN  tMainMenu, .4
+    MENU_BEGIN  tMainMenu, .5
         MENU_CALL   tDivemenu_Gaslist,  do_divemode_gaslist
         MENU_CALL   tDivemenu_ResetAvr, do_divemode_resetavr
         MENU_CALL   tDivemenu_ToggleGF, do_divemode_togglegf
+        MENU_CALL   tDivemenu_Marker,   do_set_marker
         MENU_CALL   tExit,              do_exit_divemode_menu
     MENU_END
 
+do_set_marker:
+	movlw	d'6'					; Type of Alarm (Manual Marker)
+	movwf	AlarmType				; Copy to Alarm Register
+	bsf		event_occured			; Set Event Flag
+    bra     do_exit_divemode_menu   ; And exit
+
 main_divemenu_ccr:
     bsf     ccr_diluent_setup      ; For diluents
     movlw   .1