Mercurial > public > hwos_code
diff src/sleepmode.asm @ 133:939f1e83c4c2
BUGFIX: Surface interval was not displayed correctly in some cases
NEW: Store tissue load, date and time, surface interval, desat. time and nofly time every hour and reload them after battery change
author | heinrichsweikamp |
---|---|
date | Mon, 14 Jul 2014 15:17:07 +0200 |
parents | d076e9c02438 |
children | 4574aed5cd4c |
line wrap: on
line diff
--- a/src/sleepmode.asm Tue Jul 08 11:39:00 2014 +0200 +++ b/src/sleepmode.asm Mon Jul 14 15:17:07 2014 +0200 @@ -25,6 +25,9 @@ #include "i2c.inc" #include "mcp.inc" + + extern vault_decodata_into_eeprom + gui CODE global sleeploop @@ -37,6 +40,7 @@ call TFT_Display_FadeOut call TFT_DisplayOff ; display off call disable_rs232 ; USB off + call vault_decodata_into_eeprom ; store deco data call I2C_sleep_accelerometer call I2C_sleep_compass call ext_flash_enable_protection ; enable write protection for external flash @@ -50,6 +54,8 @@ sleeploop_loop: btfsc onehourupdate ; one hour in sleep? call update_battery_registers;update battery registers into EEPROM + btfsc onehourupdate ; one hour in sleep? + call vault_decodata_into_eeprom ; update deco data btfsc oneminupdate ; one minute in sleep? rcall onemin_sleep ; do oneminute tasks, e.g. calculate desaturation