summaryrefslogtreecommitdiff
path: root/apps/system/zmodem/zm_state.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-07-15 16:21:20 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-07-15 16:21:20 -0600
commit771e38ff1b1d126bcaf8eb7b72d1c45c6bdec2be (patch)
treef1f07532d961c5bb5e5379a78dea0cd57022c755 /apps/system/zmodem/zm_state.c
parent2ec900deababd3ae9be28e9673764866f1a72fbc (diff)
downloadnuttx-771e38ff1b1d126bcaf8eb7b72d1c45c6bdec2be.tar.gz
nuttx-771e38ff1b1d126bcaf8eb7b72d1c45c6bdec2be.tar.bz2
nuttx-771e38ff1b1d126bcaf8eb7b72d1c45c6bdec2be.zip
Fix file write loop
Diffstat (limited to 'apps/system/zmodem/zm_state.c')
-rw-r--r--apps/system/zmodem/zm_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/system/zmodem/zm_state.c b/apps/system/zmodem/zm_state.c
index fb12569ea..3aaa461b7 100644
--- a/apps/system/zmodem/zm_state.c
+++ b/apps/system/zmodem/zm_state.c
@@ -784,10 +784,10 @@ static int zm_parse(FAR struct zm_state_s *pzm, size_t rcvlen)
{
if (++pzm->ncan >= 5)
{
- zmdbg("Remote end has cancelled");
+ zmdbg("Remote end has canceled\n");
pzm->rcvlen = 0;
pzm->rcvndx = 0;
- return -EAGAIN;
+ return zm_event(pzm, ZME_CANCEL);
}
}
else