Skip to content

Commit

Permalink
Remove prefix garbage detection
Browse files Browse the repository at this point in the history
It does more harm than good
  • Loading branch information
rojer committed Oct 29, 2021
1 parent 691aa99 commit abb4090
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/mgos_rpc_channel_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ void mg_rpc_channel_uart_dispatcher(int uart_no, void *arg) {
flen = end - urxb->buf;
end += FRAME_DELIM_2_LEN;
} else {
size_t garbage_len = 0;
for (size_t i = 0; i < urxb->len; i++) {
if (urxb->buf[i] == '{') break;
garbage_len++;
}
if (garbage_len > 0) mbuf_remove(urxb, garbage_len);
break;
}
}
Expand Down

0 comments on commit abb4090

Please sign in to comment.