comparison code_part1/OSTC_code_asm_part1/surfmode.asm @ 86:b40a0a6284da

adding custom functions with limits (jeando)
author heinrichsweikamp
date Thu, 09 Dec 2010 20:41:56 +0100
parents 8d8e753d72e3
children ce3283064cde
comparison
equal deleted inserted replaced
85:8b813f67220f 86:b40a0a6284da
131 call timeout_surfmode ; check timeout 131 call timeout_surfmode ; check timeout
132 call get_battery_voltage ; get battery voltage 132 call get_battery_voltage ; get battery voltage
133 call update_batt_voltage ; display battery voltage 133 call update_batt_voltage ; display battery voltage
134 call timeout_premenu ; timeout premenu 134 call timeout_premenu ; timeout premenu
135 call set_leds_surfmode ; Sets Warning and No-Fly LEDs 135 call set_leds_surfmode ; Sets Warning and No-Fly LEDs
136 call custom_functions_check_surfmode ; Checks CF functions and displays warning symbol if something critical is wrong
137 call PLED_display_decotype_surface ; Show deco mode 136 call PLED_display_decotype_surface ; Show deco mode
138 btfsc enter_error_sleep ; Enter Fatal Error Routine? 137 btfsc enter_error_sleep ; Enter Fatal Error Routine?
139 call fatal_error_sleep ; Yes (In Sleepmode_vxx.asm!) 138 call fatal_error_sleep ; Yes (In Sleepmode.asm!)
140 bcf onesecupdate ; every second tasks done 139 bcf onesecupdate ; every second tasks done
141 140
142 surfloop_loop2: 141 surfloop_loop2:
143 ; Tasks approx. every 50ms for all modes 142 ; Tasks approx. every 50ms for all modes
144 call test_switches_surfmode ; check switches 143 call test_switches_surfmode ; check switches