Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/sleepmode.asm @ 16:01510acaeb11
1.54 rc2
author | heinrichsweikamp |
---|---|
date | Sun, 28 Mar 2010 20:43:54 +0200 |
parents | 96a35aeda5f2 |
children | 1cdf96a7946f |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/sleepmode.asm Sun Mar 28 10:24:49 2010 +0200 +++ b/code_part1/OSTC_code_asm_part1/sleepmode.asm Sun Mar 28 20:43:54 2010 +0200 @@ -59,7 +59,7 @@ onemin_sleep: call get_battery_voltage ; get battery voltage btfsc enter_error_sleep ; Enter Fatal Error Routine? - goto fatal_error_sleep ; Yes (In Sleepmode_vxx.asm!) + call fatal_error_sleep ; Yes (In Sleepmode_vxx.asm!) call calc_surface_interval ; Increases Surface-Interval time call nofly_timeout60 ; check for no fly time @@ -188,6 +188,14 @@ return fatal_error_sleep: + WAITMS d'250' + WAITMS d'250' + WAITMS d'250' + WAITMS d'250' + call get_battery_voltage ; get battery voltage + btfss enter_error_sleep ; REALLY enter Fatal Error Routine? + return ; No! + clrf INTCON clrf INTCON2 clrf INTCON3