Skip to content
Snippets Groups Projects
Commit cbae690b authored by rswindell's avatar rswindell
Browse files

Don't set parity bit on LF value following hex headers (dunno why FDSZ does).

Added comments regarding ZF3 value in ZRQINIT header.
parent cb8fbf9e
No related branches found
No related tags found
No related merge requests found
......@@ -268,7 +268,7 @@ zmodem_tx_hex_header(zmodem_t* zm, unsigned char * p)
*/
zmodem_tx_raw(zm, '\r');
zmodem_tx_raw(zm, '\n'|0x80); /* FDSZ sends 0x8a instead of 0x0a */
zmodem_tx_raw(zm, '\n'); /* FDSZ sends 0x8a instead of 0x0a */
if(type!=ZACK && type!=ZFIN)
zmodem_tx_raw(zm, XON);
......@@ -1204,7 +1204,9 @@ void zmodem_parse_zrinit(zmodem_t* zm)
int zmodem_get_zrinit(zmodem_t* zm)
{
unsigned char zrqinit_header[] = { ZRQINIT, 0, 0, 0, 0 };
unsigned char zrqinit_header[] = { ZRQINIT, /* ZF3: */0, 0, 0, /* ZF0: */0 };
/* Note: sz/dsz/fdsz sends 0x80 in ZF3 because it supports var-length headers. */
/* We do not, so we send 0x00, resulting in a CRC-16 value of 0x0000 as well. */
zmodem_tx_raw(zm,'r');
zmodem_tx_raw(zm,'z');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment