Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/start.asm @ 233:2cbaa01dac26
Hunting for NoFly (bug BB13)... not found yet...
+ In DEBUG compile, keep simulated dives in logbook, desat and nofly time, etc.
author | JeanDo |
---|---|
date | Tue, 15 Mar 2011 19:16:34 +0100 |
parents | 85ea09d3b9d8 |
children | ade0848c8b8b |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/start.asm Wed Mar 16 19:03:01 2011 +0100 +++ b/code_part1/OSTC_code_asm_part1/start.asm Tue Mar 15 19:16:34 2011 +0100 @@ -41,11 +41,6 @@ call disable_rs232 ; disable UART module call RTCinit ; reset RTC -; Extra power-up reset (JeanDo) - ifdef TESTING - call do_menu_reset_all2 - endif - ; Air pressure compensation after reset call get_calibration_data ; Get calibration data from pressure sensor @@ -62,7 +57,7 @@ bsf sleepmode ; Routine only works in sleepmode... call pressuretest_sleep_fast ; Gets pressure without averaging (faster!) bcf sleepmode ; Normal mode again - + movff amb_pressure+0,last_surfpressure+0 movff amb_pressure+1,last_surfpressure+1 movff amb_pressure+0,last_surfpressure_15min+0 @@ -70,6 +65,11 @@ movff amb_pressure+0,last_surfpressure_30min+0 movff amb_pressure+1,last_surfpressure_30min+1 ; Rests all airpressure registers +; Extra power-up reset (JeanDo) + ifdef TESTING + call do_menu_reset_all2 + endif + ; reset deco data clrf WREG ; Use as buffer movff WREG,char_I_He_ratio ; No He at the Surface