dist/tools/ethos/ethos.c: remove unusued var 'escaped'
This commit is contained in:
parent
7e2fd21f2a
commit
d2e90b2370
2
dist/tools/ethos/ethos.c
vendored
2
dist/tools/ethos/ethos.c
vendored
@ -261,7 +261,6 @@ static void _write_escaped(int fd, char* buf, ssize_t n)
|
||||
/* Our workaround is to prepare the data to send in a local buffer and then
|
||||
* call write() on the buffer instead of one char at a time */
|
||||
uint8_t out[SERIAL_BUFFER_SIZE];
|
||||
size_t escaped = 0;
|
||||
size_t buffered = 0;
|
||||
|
||||
while(n--) {
|
||||
@ -269,7 +268,6 @@ static void _write_escaped(int fd, char* buf, ssize_t n)
|
||||
if (c == LINE_FRAME_DELIMITER || c == LINE_ESC_CHAR) {
|
||||
out[buffered++] = LINE_ESC_CHAR;
|
||||
c ^= 0x20;
|
||||
++escaped;
|
||||
if (buffered >= SERIAL_BUFFER_SIZE) {
|
||||
checked_write(fd, out, buffered);
|
||||
buffered = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user