Mercurial > public > hwos_code
diff src/start.asm @ 457:b4417044a042
recover old battery status prior 2.09
author | heinrichsweikamp |
---|---|
date | Wed, 28 Sep 2016 11:16:31 +0200 |
parents | 850c1f3c4824 |
children | 2c58631d5229 |
line wrap: on
line diff
--- a/src/start.asm Tue Sep 27 19:13:00 2016 +0200 +++ b/src/start.asm Wed Sep 28 11:16:31 2016 +0200 @@ -142,11 +142,15 @@ bcf menubit ; clear menu flag ; Check for Power-on reset here - extern new_battery_menu,use_old_batteries + extern new_battery_menu,use_old_batteries, use_old_prior_209 ; ***************************************************************************** ; "new_battery_menu" and "use_old_batteries" 'goto' back to "power_on_return" ; ***************************************************************************** + ; Try to migrate the old battery status from firmware 2.09 or earlier.. + btfsc RCON,POR ; Was this a power-on reset? + call use_old_prior_209 + btfsc RCON,POR ; Was this a power-on reset? goto use_old_batteries ; No, load last stored battery values and return to "power_on_return:"