mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
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>
This commit is contained in:
parent
1e7478461b
commit
15c27a5a22
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue