Mercurial > public > hwos_code
diff src/eeprom_rs232.asm @ 276:e4cb495aed3d
Increase byte timeout in PC download mode, faster response to "Exit" in main menu
author | heinrichsweikamp |
---|---|
date | Tue, 12 May 2015 14:24:46 +0200 |
parents | 653a3ab08062 |
children | 1e342e433839 |
line wrap: on
line diff
--- a/src/eeprom_rs232.asm Thu May 07 13:11:14 2015 +0200 +++ b/src/eeprom_rs232.asm Tue May 12 14:24:46 2015 +0200 @@ -192,11 +192,17 @@ rs232_get_byte2: btfsc PIR1,RCIF ; data arrived? return + btfsc PIR1,RCIF ; data arrived? + return + btfsc PIR1,RCIF ; data arrived? + return + btfsc PIR1,RCIF ; data arrived? + return decfsz uart2_temp,F bra rs232_get_byte2 decfsz uart1_temp,F bra rs232_get_byte2 - ; timeout occoured (about 20ms) + ; timeout occoured (about 40ms) bsf rs232_recieve_overflow ; set flag bcf RCSTA1,CREN ; Clear receiver status bsf RCSTA1,CREN