diff src/start.asm @ 375:a9e35c1327aa

1.88 release, BUGFIX: Start with Sensor use from sleep (cR only), CHANGE: Apply button settings when button menu is closed, NEW: Reset button settings on a magnet reset (cR and OSTC 2)
author heinrichsweikamp
date Thu, 27 Aug 2015 17:05:13 +0200
parents 2be48ccfa9de
children d3087a8ed7e1
line wrap: on
line diff
--- a/src/start.asm	Tue Aug 25 14:22:55 2015 +0200
+++ b/src/start.asm	Thu Aug 27 17:05:13 2015 +0200
@@ -139,11 +139,15 @@
     goto	use_old_batteries				; No, load last stored battery values
 
     call    lt2942_get_status               ; Check for gauge IC
-    btfsc   rechargeable                     ; cR hardware?
-    goto	use_old_batteries				; Yes, load last stored battery values
+
+    btfss   rechargeable                    ; cR or 2 hardware?
+ 	goto	new_battery_menu				; No, show "New battery dialog"
 
-    ; No, cR and we have a power-on reset
- 	goto	new_battery_menu				; show "New battery dialog"
+    movlw   .30
+    movff   WREG,opt_cR_button_right
+    movff   WREG,opt_cR_button_left         ; Reset on power-on reset
+    call    piezo_config                    ; Yes, configure buttons
+    goto	use_old_batteries				; Yes, load last stored battery values
 
 	global	power_on_return
 power_on_return: