Mercurial > public > hwos_code
comparison 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 |
comparison
equal
deleted
inserted
replaced
456:e56c45ec309a | 457:b4417044a042 |
---|---|
140 call deco_calc_wo_deco_step_1_min ; calculate deco in surface mode | 140 call deco_calc_wo_deco_step_1_min ; calculate deco in surface mode |
141 banksel common | 141 banksel common |
142 bcf menubit ; clear menu flag | 142 bcf menubit ; clear menu flag |
143 | 143 |
144 ; Check for Power-on reset here | 144 ; Check for Power-on reset here |
145 extern new_battery_menu,use_old_batteries | 145 extern new_battery_menu,use_old_batteries, use_old_prior_209 |
146 ; ***************************************************************************** | 146 ; ***************************************************************************** |
147 ; "new_battery_menu" and "use_old_batteries" 'goto' back to "power_on_return" | 147 ; "new_battery_menu" and "use_old_batteries" 'goto' back to "power_on_return" |
148 ; ***************************************************************************** | 148 ; ***************************************************************************** |
149 | 149 |
150 ; Try to migrate the old battery status from firmware 2.09 or earlier.. | |
151 btfsc RCON,POR ; Was this a power-on reset? | |
152 call use_old_prior_209 | |
153 | |
150 btfsc RCON,POR ; Was this a power-on reset? | 154 btfsc RCON,POR ; Was this a power-on reset? |
151 goto use_old_batteries ; No, load last stored battery values and return to "power_on_return:" | 155 goto use_old_batteries ; No, load last stored battery values and return to "power_on_return:" |
152 | 156 |
153 ; bsf LEDg | 157 ; bsf LEDg |
154 goto new_battery_menu ; No, show "New battery dialog" and return to "power_on_return:" | 158 goto new_battery_menu ; No, show "New battery dialog" and return to "power_on_return:" |