changeset 128:bd74161c4292

catch timeout during set time/date command
author heinrichsweikamp
date Tue, 01 Jul 2014 17:37:02 +0200
parents 2899e886ea26
children a329a948cede
files src/comm.asm
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
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