diff src/surfmode.asm @ 354:043890f06bce

some cleanups
author heinrichsweikamp
date Wed, 29 Jul 2015 20:39:35 +0200
parents 5c6da9fa5cb0
children a9e35c1327aa
line wrap: on
line diff
--- a/src/surfmode.asm	Tue Jul 28 16:32:55 2015 +0200
+++ b/src/surfmode.asm	Wed Jul 29 20:39:35 2015 +0200
@@ -87,8 +87,10 @@
 	clrf	ext_flash_address+1
 	clrf	ext_flash_address+2
 
+    movlw   surface_sp                  ; in cbar
+    call    transmit_setpoint           ; Transmit current setpoint from WREG (in cbar) to external electronics
     btfsc   rechargeable
-    call    piezo_config            ; Configure buttons
+    call    piezo_config                ; Configure buttons
 
 	clrf	timeout_counter2
 	clrf 	timeout_counter3
@@ -137,8 +139,6 @@
     movwf   TBLPTRU
     call    color_image
 
-    movlw   surface_sp                  ; in cbar
-    call    transmit_setpoint           ; Transmit current setpoint from WREG (in cbar) to external electronics
 	call	TFT_clock					; display time
     call    update_surfloop60
 	call	get_battery_voltage			; get battery voltage