diff options
Diffstat (limited to 'src/lib/xmodem.c')
-rw-r--r-- | src/lib/xmodem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/xmodem.c b/src/lib/xmodem.c index 465d6670a3..2d553bed03 100644 --- a/src/lib/xmodem.c +++ b/src/lib/xmodem.c @@ -143,7 +143,7 @@ int xmodemReceive(unsigned char *dest, int destsz) *p++ = c; } - if (xbuff[1] == (unsigned char)(~xbuff[2]) && + if (xbuff[1] == (unsigned char)(~xbuff[2]) && (xbuff[1] == packetno || xbuff[1] == (unsigned char)packetno-1) && check(crc, &xbuff[3], bufsz)) { if (xbuff[1] == packetno) { |