comparison 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
comparison
equal deleted inserted replaced
214:a17359244d93 215:8636efc5c6c5
127 call deco_calc_desaturation_time ; calculate desaturation time 127 call deco_calc_desaturation_time ; calculate desaturation time
128 banksel common 128 banksel common
129 call deco_calc_wo_deco_step_1_min ; calculate deco in surface mode 129 call deco_calc_wo_deco_step_1_min ; calculate deco in surface mode
130 banksel common 130 banksel common
131 bcf menubit ; clear menu flag 131 bcf menubit ; clear menu flag
132
132 ; Check for Power-on reset here 133 ; Check for Power-on reset here
133 extern new_battery_menu 134 extern new_battery_menu,use_old_batteries
134 extern use_old_batteries 135 ; *****************************************************************************
136 ; "new_battery_menu" and "use_old_batteries" 'goto' back to "power_on_return"
137 ; *****************************************************************************
135 138
136 btfsc RCON,POR ; Was this a power-on reset? 139 btfsc RCON,POR ; Was this a power-on reset?
137 goto use_old_batteries ; No, load last stored battery values 140 goto use_old_batteries ; No, load last stored battery values
138 ; "new_battery_menu" and "use_old_batteries" 'goto' back to "power_on_return" 141
139 142 call lt2942_get_status ; Check for gauge IC
140 ; Yes 143 btfsc cr_hardware ; cR hardware?
144 goto use_old_batteries ; Yes, load last stored battery values
145
146 ; No, cR and we have a power-on reset
141 goto new_battery_menu ; show "New battery dialog" 147 goto new_battery_menu ; show "New battery dialog"
142 ; "new_battery_menu" and "use_old_batteries" 'goto' back to "power_on_return"
143 148
144 global power_on_return 149 global power_on_return
145 power_on_return: 150 power_on_return:
146 bsf RCON,POR ; Set bit for next detection 151 bsf RCON,POR ; Set bit for next detection
147 152