Mercurial > public > hwos_code
diff src/comm.asm @ 128:bd74161c4292
catch timeout during set time/date command
author | heinrichsweikamp |
---|---|
date | Tue, 01 Jul 2014 17:37:02 +0200 |
parents | 40ff64d60054 |
children | 9a637c9bb19a |
line wrap: on
line diff
--- a/src/comm.asm Tue Jul 01 14:48:17 2014 +0200 +++ b/src/comm.asm Tue Jul 01 17:37:02 2014 +0200 @@ -605,39 +605,39 @@ call rs232_wait_tx ; wait for UART call rs232_get_byte btfsc rs232_recieve_overflow ; Got byte? - return ; No, abort! + bra comm_download_mode0 ; No, abort movff RCREG1, hours movlw d'24' cpfslt hours clrf hours call rs232_get_byte btfsc rs232_recieve_overflow ; Got byte? - return ; No, abort! + bra comm_download_mode0 ; No, abort movff RCREG1, mins movlw d'60' cpfslt mins clrf mins call rs232_get_byte btfsc rs232_recieve_overflow ; Got byte? - return ; No, abort! + bra comm_download_mode0 ; No, abort movff RCREG1, secs movlw d'60' cpfslt secs clrf secs call rs232_get_byte btfsc rs232_recieve_overflow ; Got byte? - return ; No, abort! + bra comm_download_mode0 ; No, abort movff RCREG1, month movlw d'13' cpfslt month movwf month call rs232_get_byte btfsc rs232_recieve_overflow ; Got byte? - return ; No, abort! + bra comm_download_mode0 ; No, abort call comm_check_day ; Check day call rs232_get_byte btfsc rs232_recieve_overflow ; Got byte? - return ; No, abort! + bra comm_download_mode0 ; No, abort movff RCREG1, year movlw d'100' cpfslt year