sercomm: ESCAPE every NUL (0x00) byte in the data stream
authorHarald Welte <laforge@gnumonks.org>
Sat, 27 Mar 2010 04:22:21 +0000 (12:22 +0800)
committerHarald Welte <laforge@gnumonks.org>
Sat, 27 Mar 2010 04:24:29 +0000 (12:24 +0800)
commitc9c4c4b819ccd85b343a1c9bdc1ef8085f801345
tree6317c2c33a608335027870c4519cd246e52f26ce
parentbbe405b7fe3251978be30e81e068a9ad7376c92d
sercomm: ESCAPE every NUL (0x00) byte in the data stream

For some reason, at least on the C123, a sequence of multiple NUL bytes
seems to get corrupted somewhere in the Rx side on the phone itself (the
NUL plus the following character get dropped).

We now simply work around this issue by having our sercomm/HDLC layer
escape all NUL octets in the stream.
src/target/firmware/comm/sercomm.c