Commit 1673e19c authored by danicampora's avatar danicampora
Browse files

cc3200: Make telnet server ignore NULL characters.

This fixes paste mode (Ctrl-E) which was not working for the
telnet REPL.
parent af3e4541
......@@ -451,9 +451,13 @@ static void telnet_parse_input (uint8_t *str, int16_t *len) {
(*len)--;
_str++;
}
else {
else if (*_str > 0) {
*str++ = *_str++;
}
else {
_str++;
*len -= 1;
}
}
else {
// in case we have received an incomplete telnet option, unlikely, but possible
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment