kopia lustrzana https://github.com/weetmuts/wmbusmeters
Remember to reset escape sequence after slip escape completed.
rodzic
26ebbb08c7
commit
b8f4a9457d
|
@ -2011,6 +2011,7 @@ void removeSlipFraming(vector<uchar>& from, size_t *frame_length, vector<uchar>
|
|||
}
|
||||
else if (esc)
|
||||
{
|
||||
esc = false;
|
||||
if (c == SLIP_ESC_END) to.push_back(SLIP_END);
|
||||
else if (c == SLIP_ESC_ESC) to.push_back(SLIP_ESC);
|
||||
else to.push_back(c); // This is an error......
|
||||
|
|
Ładowanie…
Reference in New Issue