diff src/eeprom_rs232.asm @ 344:1e342e433839

CHANGE: GF and aGF high range increased to 45-110% Flow control test
author heinrichsweikamp
date Mon, 20 Jul 2015 15:04:13 +0200
parents e4cb495aed3d
children 2fd258596af0
line wrap: on
line diff
--- a/src/eeprom_rs232.asm	Mon Jul 20 12:43:42 2015 +0200
+++ b/src/eeprom_rs232.asm	Mon Jul 20 15:04:13 2015 +0200
@@ -169,10 +169,22 @@
     bsf     PORTE,0                 ; Stop comms
 	return
 
+    
+rs232_wait_tx_led:
+    bsf     LEDr            ; Flow control test mH
+
 	global	rs232_wait_tx
 rs232_wait_tx:
 	btfss	TXSTA1,TRMT			; RS232 Busy?
 	bra		rs232_wait_tx		; yes, wait...
+
+    btfss  ble_available        ; ble available?
+    return                      ; No, done.
+    
+    btfsc   NRTS                ; Wait for Bluetooth module
+    bra		rs232_wait_tx_led   ; yes, wait...
+
+    bcf     LEDr
 	return						; Done.
 
     global  rs232_wait_tx2