diff src/surfmode.asm @ 221:90923a081ae7

minor: configure buttons during splash screen
author heinrichsweikamp
date Mon, 05 Jan 2015 16:13:15 +0100
parents 3b5df65d53fc
children 8c11f60193be
line wrap: on
line diff
--- a/src/surfmode.asm	Mon Jan 05 14:41:23 2015 +0100
+++ b/src/surfmode.asm	Mon Jan 05 16:13:15 2015 +0100
@@ -44,8 +44,6 @@
 	global	surfloop
 surfloop:
     call	speed_normal
-    btfss   cr_hardware
-    call    piezo_config            ; Configure buttons
     bcf     no_sensor_int           ; Normal pressure mode
 
     clrf	CCP1CON					; stop PWM
@@ -86,6 +84,9 @@
 	clrf	ext_flash_address+1
 	clrf	ext_flash_address+2
 
+    btfss   cr_hardware
+    call    piezo_config            ; Configure buttons
+
 	clrf	timeout_counter2
 	clrf 	timeout_counter3
 	bcf		menubit						; clear menu flag