Skip to content
Snippets Groups Projects
Commit dca3c42b authored by deuce's avatar deuce
Browse files

ZModem expects send_byte() to return zero on success, non-zero on failure.

parent 784570ee
No related branches found
No related tags found
No related merge requests found
......@@ -362,7 +362,7 @@ void zmodem_progress(void* cbdata, ulong current_pos)
#endif
static int send_byte(void* unused, uchar ch, unsigned timeout /* seconds */)
{
return conn_send(&ch,sizeof(ch),timeout*1000);
return(conn_send(&ch,sizeof(ch),timeout*1000)==1);
}
#if defined(__BORLANDC__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment