comparison code_part1/OSTC_code_asm_part1/menu_ppO2.asm @ 575:cbdcbbc91877

some code cleaning
author heinrichsweikamp
date Sat, 21 Apr 2012 15:08:09 +0200
parents 6e57b5bb98ce
children ab2686087bce
comparison
equal deleted inserted replaced
574:101fec6a6137 575:cbdcbbc91877
134 134
135 menu_const_ppO2_loop: 135 menu_const_ppO2_loop:
136 call check_switches_logbook 136 call check_switches_logbook
137 137
138 btfsc menubit3 138 btfsc menubit3
139 bra menu_const_ppO22 ; move cursor 139 bra menu_const_ppO22 ; move cursor
140 140
141 btfsc menubit2 141 btfsc menubit2
142 bra do_menu_const_ppO2 ; call submenu 142 bra do_menu_const_ppO2 ; call submenu
143
144 btfsc divemode
145 goto restart ; dive started!
146 143
147 btfsc onesecupdate 144 btfsc onesecupdate
148 call timeout_surfmode 145 call menu_check_dive_and_timeout ; "Goto restart" or sets sleepmode flag
149
150 btfsc onesecupdate
151 call set_dive_modes
152 146
153 bcf onesecupdate ; 1 sec. functions done 147 bcf onesecupdate ; 1 sec. functions done
154 148
155 btfsc sleepmode 149 btfsc sleepmode
156 bra exit_menu_const_ppO2 150 bra exit_menu_const_ppO2
157 151
158 bra menu_const_ppO2_loop 152 bra menu_const_ppO2_loop
159 153
160 menu_const_ppO22: 154 menu_const_ppO22:
161 incf menupos,F 155 incf menupos,F
162 156
163 movlw d'2' 157 movlw d'2'