# HG changeset patch # User heinrichsweikamp # Date 1404229022 -7200 # Node ID bd74161c429257d12d52bf893fa336c1794b5b71 # Parent 2899e886ea2610c9e0441e095cee6d7664afbba7 catch timeout during set time/date command diff -r 2899e886ea26 -r bd74161c4292 src/comm.asm --- 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