diff options
author | Pali Rohár | 2021-08-03 16:28:39 +0200 |
---|---|---|
committer | Tom Rini | 2021-09-03 14:32:40 -0400 |
commit | 15c27a5a223717041d4acba8a07db846df674073 (patch) | |
tree | 513bb51b2e99af3c29eba316ac744061e1ac8c0b /common/xyzModem.c | |
parent | 1e7478461bb4e8842f1ca8e5ffb5a441041b0753 (diff) |
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 <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/xyzModem.c')
-rw-r--r-- | common/xyzModem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/xyzModem.c b/common/xyzModem.c index b1b72aae0ba..631c44e11ad 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; } |