changeset 245:416723c8ccd8

use single-byte hardware flag (again)
author heinrichsweikamp
date Wed, 04 Mar 2015 19:01:57 +0100
parents db75dbeef5ed
children f345a55c92e0
files doc/ostc3_interface.odt src/comm.asm src/surfmode.asm
diffstat 3 files changed, 3 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
Binary file doc/ostc3_interface.odt has changed
--- a/src/comm.asm	Wed Mar 04 16:26:48 2015 +0100
+++ b/src/comm.asm	Wed Mar 04 19:01:57 2015 +0100
@@ -196,7 +196,6 @@
 	bra		$-2
 
 	call	disable_rs232
-	bcf		LEDr
     goto    restart
 
 ;-----------------------------------------------------------------------------
@@ -736,15 +735,6 @@
     movwf	TXREG1
     call	rs232_wait_tx					; wait for UART
     movff   hardware_flag,TXREG1
-    call	rs232_wait_tx					; wait for UART
-    movlw   0x00            ; unused 1
-    movwf   TXREG1
-    call	rs232_wait_tx					; wait for UART
-    movlw   0x00            ; unused 2
-    movwf   TXREG1
-    call	rs232_wait_tx					; wait for UART
-    movlw   0x00            ; unused 3
-    movwf   TXREG1
     bra     comm_download_mode0             ; Done.
 
 ;-----------------------------------------------------------------------------
--- a/src/surfmode.asm	Wed Mar 04 16:26:48 2015 +0100
+++ b/src/surfmode.asm	Wed Mar 04 19:01:57 2015 +0100
@@ -46,6 +46,9 @@
     call	speed_normal
     bcf     no_sensor_int           ; Normal pressure mode
 
+    bcf     LEDg
+    bcf     LEDr
+
     clrf	CCP1CON					; stop PWM
 	bcf		PORTC,2					; Pull PWM output to GND
 	call	TFT_boot                ; Initialize TFT (includes clear screen)
@@ -98,8 +101,6 @@
 	bcf		simulatormode_active		; Quit simulator mode (if active)
 	bcf		switch_left
 	bcf		switch_right
-    bcf     LEDg
-    bcf     LEDr
 
 	;---- Fade to standard surface view --------------------------------------
 	; Wait 1 second