diff src/comm.asm @ 378:7faa688db105

BUGFIX: BLE timings for MAC issues
author heinrichsweikamp
date Tue, 15 Sep 2015 18:11:08 +0200
parents 57e349960ef4
children 682199d87b5c
line wrap: on
line diff
--- a/src/comm.asm	Thu Sep 10 13:05:26 2015 +0200
+++ b/src/comm.asm	Tue Sep 15 18:11:08 2015 +0200
@@ -131,6 +131,9 @@
 	btfsc	onesecupdate
 	bra		comm_mode1
 
+    btfsc   rs232_recieve_overflow
+    bra     comm_mode2				; Cycle
+
 	movlw	0xAA						; start byte=0xAA?
 	cpfseq	RCREG1
 	bra		comm_mode2a
@@ -483,7 +486,7 @@
 	cpfseq	RCREG1
 	bra		$+4
 	bra		comm_set_custom_text		; Send a opt_name_length byte string of custom text.
-	movlw	"f"
+	movlw	"f" ; 0x66
 	cpfseq	RCREG1
 	bra		$+4
 	bra		comm_send_dive				; Send header and profile for one dive
@@ -822,7 +825,7 @@
 ;-----------------------------------------------------------------------------
 
 comm_send_dive:
-	movlw	"f"								; send echo
+	movlw	"f"; 0x66						; send echo
 	movwf	TXREG1
 	
 	rcall	comm_write_get_byte