[PATCH 2/7] xyz-modem: Fix x-modem "xyzModem_eof error" at the end of file
Pali Rohár
pali at kernel.org
Tue Aug 3 16:28:39 CEST 2021
In x-modem protocol EOF is not an error state at the end of file.
Signed-off-by: Pali Rohár <pali at kernel.org>
---
common/xyzModem.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/common/xyzModem.c b/common/xyzModem.c
index b1b72aae0baf..631c44e11adf 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;
}
--
2.20.1
More information about the U-Boot
mailing list