Mercurial > public > hwos_code
diff src/start.asm @ 215:8636efc5c6c5
ignore battery menu for cr
author | heinrichsweikamp |
---|---|
date | Mon, 15 Dec 2014 12:50:23 +0100 |
parents | f5d909e03f52 |
children | effd7259f5a5 |
line wrap: on
line diff
--- a/src/start.asm Sun Dec 14 13:56:05 2014 +0100 +++ b/src/start.asm Mon Dec 15 12:50:23 2014 +0100 @@ -129,17 +129,22 @@ call deco_calc_wo_deco_step_1_min ; calculate deco in surface mode banksel common bcf menubit ; clear menu flag + ; Check for Power-on reset here - extern new_battery_menu - extern use_old_batteries + extern new_battery_menu,use_old_batteries + ; ***************************************************************************** + ; "new_battery_menu" and "use_old_batteries" 'goto' back to "power_on_return" + ; ***************************************************************************** btfsc RCON,POR ; Was this a power-on reset? goto use_old_batteries ; No, load last stored battery values - ; "new_battery_menu" and "use_old_batteries" 'goto' back to "power_on_return" - ; Yes + call lt2942_get_status ; Check for gauge IC + btfsc cr_hardware ; cR hardware? + goto use_old_batteries ; Yes, load last stored battery values + + ; No, cR and we have a power-on reset goto new_battery_menu ; show "New battery dialog" - ; "new_battery_menu" and "use_old_batteries" 'goto' back to "power_on_return" global power_on_return power_on_return: