From: Pali Rohár Date: Tue, 3 Aug 2021 14:28:39 +0000 (+0200) Subject: xyz-modem: Fix x-modem "xyzModem_eof error" at the end of file X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=15c27a5a223717041d4acba8a07db846df674073;p=u-boot.git xyz-modem: Fix x-modem "xyzModem_eof error" at the end of file In x-modem protocol EOF is not an error state at the end of file. Signed-off-by: Pali Rohár Reviewed-by: Simon Glass --- diff --git a/common/xyzModem.c b/common/xyzModem.c index b1b72aae0b..631c44e11a 100644 --- a/common/xyzModem.c +++ b/common/xyzModem.c @@ -572,6 +572,8 @@ xyzModem_stream_read (char *buf, int size, int *err) CYGACC_COMM_IF_PUTC (*xyz.__chan, ACK); ZM_DEBUG (zm_dprintf ("FINAL ACK (%d)\n", __LINE__)); } + else + stat = 0; xyz.at_eof = true; break; }