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

Removed "variable header" support, only half-implemented and against Chuck's

licensing anyway.
parent 65ad8846
No related branches found
No related tags found
No related merge requests found
...@@ -177,13 +177,7 @@ zmodem_tx_hex_header(zmodem_t* zm, unsigned char * p) ...@@ -177,13 +177,7 @@ zmodem_tx_hex_header(zmodem_t* zm, unsigned char * p)
zmodem_tx_raw(zm, ZPAD); zmodem_tx_raw(zm, ZPAD);
zmodem_tx_raw(zm, ZDLE); zmodem_tx_raw(zm, ZDLE);
if(zm->use_variable_headers) {
zmodem_tx_raw(zm, ZVHEX);
zmodem_tx_hex(zm, HDRLEN);
}
else {
zmodem_tx_raw(zm, ZHEX); zmodem_tx_raw(zm, ZHEX);
}
/* /*
* initialise the crc * initialise the crc
...@@ -249,13 +243,7 @@ zmodem_tx_bin32_header(zmodem_t* zm, unsigned char * p) ...@@ -249,13 +243,7 @@ zmodem_tx_bin32_header(zmodem_t* zm, unsigned char * p)
zmodem_tx_raw(zm, ZPAD); zmodem_tx_raw(zm, ZPAD);
zmodem_tx_raw(zm, ZDLE); zmodem_tx_raw(zm, ZDLE);
if(zm->use_variable_headers) {
zmodem_tx_raw(zm, ZVBIN32);
zmodem_tx(zm, HDRLEN);
}
else {
zmodem_tx_raw(zm, ZBIN32); zmodem_tx_raw(zm, ZBIN32);
}
crc = 0xffffffffL; crc = 0xffffffffL;
...@@ -286,13 +274,7 @@ zmodem_tx_bin16_header(zmodem_t* zm, unsigned char * p) ...@@ -286,13 +274,7 @@ zmodem_tx_bin16_header(zmodem_t* zm, unsigned char * p)
zmodem_tx_raw(zm, ZPAD); zmodem_tx_raw(zm, ZPAD);
zmodem_tx_raw(zm, ZDLE); zmodem_tx_raw(zm, ZDLE);
if(zm->use_variable_headers) {
zmodem_tx_raw(zm, ZVBIN);
zmodem_tx(zm, HDRLEN);
}
else {
zmodem_tx_raw(zm, ZBIN); zmodem_tx_raw(zm, ZBIN);
}
crc = 0; crc = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment