Browse Source

fix not reading_until_length after buckets

mcspr-patch-1
Maxim Prokhorov 3 years ago
parent
commit
4b93369706
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      code/espurna/rfbridge.cpp

+ 3
- 0
code/espurna/rfbridge.cpp View File

@ -199,6 +199,7 @@ struct RfbParser {
void read_until_length(uint8_t c) {
_payload.push_back(c);
if ((_payload_offset + _payload_length) == _payload.size()) {
switch (_payload_code) {
case CodeLearnOk:
@ -243,6 +244,8 @@ struct RfbParser {
void reset() {
_payload.clear();
_payload_length = 0u;
_payload_offset = 0u;
_payload_code = 0u;
_state = &RfbParser::start;
}


Loading…
Cancel
Save