comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 141:622da16b768f

LowBatt! Warning in divemode
author heinrichsweikamp
date Thu, 06 Jan 2011 18:36:22 +0100
parents 03df42de03e1
children a1960295433b 144822282fa3
comparison
equal deleted inserted replaced
140:87a53efbb5ba 141:622da16b768f
94 94
95 ; Common Tasks for all modes 95 ; Common Tasks for all modes
96 diveloop_loop1x: 96 diveloop_loop1x:
97 call timeout_divemode ; dive finished? This routine sets the required flags 97 call timeout_divemode ; dive finished? This routine sets the required flags
98 btfsc low_battery_state ; If battery is low, then... 98 btfsc low_battery_state ; If battery is low, then...
99 call update_batt_voltage_divemode ; Display Battery Symbol/Voltage! 99 call update_batt_voltage_divemode ; Display Battery Warning Text
100 btfsc premenu ; is Menu? displayed? 100 btfsc premenu ; is Menu? displayed?
101 call timeout_premenu_divemode ; No, so check for timeout premenu 101 call timeout_premenu_divemode ; No, so check for timeout premenu
102 btfsc menubit ; is the Dive mode menu displayed? 102 btfsc menubit ; is the Dive mode menu displayed?
103 call timeout_divemenu ; Yes, so check for timeout divemenu 103 call timeout_divemenu ; Yes, so check for timeout divemenu
104 call set_leds_divemode ; Sets warnings, if required. Also Sets buzzer 104 call set_leds_divemode ; Sets warnings, if required. Also Sets buzzer