mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-15 07:29:17 +08:00
[ymodem] fix the cmd "sy" without close file
This commit is contained in:
parent
7943639f20
commit
0893bf7a56
@ -186,7 +186,10 @@ static enum rym_code _rym_send_end(
|
|||||||
rt_uint8_t *buf,
|
rt_uint8_t *buf,
|
||||||
rt_size_t len)
|
rt_size_t len)
|
||||||
{
|
{
|
||||||
|
struct custom_ctx *cctx = (struct custom_ctx *)ctx;
|
||||||
rt_memset(buf, 0, len);
|
rt_memset(buf, 0, len);
|
||||||
|
close(cctx->fd);
|
||||||
|
cctx->fd = -1;
|
||||||
|
|
||||||
return RYM_CODE_SOH;
|
return RYM_CODE_SOH;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user