comparison src/start.asm @ 615:b87f23fae743

work on new battery menu
author heinrichsweikamp
date Sat, 02 Feb 2019 17:39:44 +0100
parents a32212cd5ea9
children c40025d8e750
comparison
equal deleted inserted replaced
614:a32212cd5ea9 615:b87f23fae743
182 bcf menubit ; clear menu flag 182 bcf menubit ; clear menu flag
183 183
184 ; check for power-on reset here 184 ; check for power-on reset here
185 185
186 ; ***************************************************************************** 186 ; *****************************************************************************
187 ; "new_battery_menu" and "use_old_batteries" 'goto' back to "power_on_return" 187 ; "do_new_battery_menu" and "use_old_batteries" 'goto' back to "power_on_return"
188 ; ***************************************************************************** 188 ; *****************************************************************************
189 189
190 ; Try to migrate the old battery status from firmware 2.09 or earlier.. 190 ; Try to migrate the old battery status from firmware 2.09 or earlier..
191 btfsc RCON,POR ; was this a power-on reset? 191 btfsc RCON,POR ; was this a power-on reset?
192 call use_old_prior_209 ; NO 192 call use_old_prior_209 ; NO
310 ; do not clear flag13 (important hardware flags) 310 ; do not clear flag13 (important hardware flags)
311 clrf flag14 311 clrf flag14
312 clrf flag15 312 clrf flag15
313 clrf flag16 313 clrf flag16
314 clrf flag17 314 clrf flag17
315 315 ; do not clear flag18 (important hardware flags)
316
316 clrf cvt_flags 317 clrf cvt_flags
317 318
318 clrf tft_update_flags+0 319 clrf tft_update_flags+0
319 clrf tft_update_flags+1 320 clrf tft_update_flags+1
320 clrf tft_update_flags+2 321 clrf tft_update_flags+2
350 351
351 restart2: 352 restart2:
352 btfsc vusb_in 353 btfsc vusb_in
353 bra restart3 ; USB (and powered on) 354 bra restart3 ; USB (and powered on)
354 bcf PORTE,0 ; start comms 355 bcf PORTE,0 ; start comms
355 WAITMS d'1' 356 WAITMS d'5'
356 btfss vusb_in 357 btfss vusb_in
357 bra restart3 ; USB (and powered off) 358 bra restart3 ; USB (and powered off)
358 bsf ble_available ; BLE available 359 bsf ble_available ; BLE available
359 360
360 restart3: 361 restart3: