changeset 242:df8beb913ade

expand hardware_flag to 4 bytes
author heinrichsweikamp
date Tue, 03 Mar 2015 12:09:24 +0100
parents 613e42d4cdff
children ee81f46714cb
files doc/ostc3_interface.odt src/comm.asm
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
Binary file doc/ostc3_interface.odt has changed
--- a/src/comm.asm	Mon Mar 02 17:05:09 2015 +0100
+++ b/src/comm.asm	Tue Mar 03 12:09:24 2015 +0100
@@ -258,7 +258,6 @@
 
     movlw   0xFF                            ; send ABORTED byte.
 	movwf	TXREG1
-	call	rs232_wait_tx                   ; Wait for UART
 	bra		comm_download_mode0				; Done.
 
 ;-----------------------------------------------------------------------------
@@ -738,6 +737,14 @@
     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.
 
 ;-----------------------------------------------------------------------------
@@ -950,7 +957,6 @@
     return
 
 comm_read_done:
-    rcall	comm_read_setting_wait          ; Wait for UART
     bra		comm_download_mode0             ; Done. Loop with timeout reset
 
 comm_read_gas1: