Skip to content

Commit

Permalink
Removing the code that checks for a "MAB too long" in Receiver::check…
Browse files Browse the repository at this point in the history
…PacketTimeout(), the IDLE (11 1's) condition immediately after a BREAK. It's wrong because MABs are allowed to be longer (but less than 1s).
  • Loading branch information
ssilverman committed Jul 22, 2019
1 parent c64bf71 commit 4c731cd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,14 +477,6 @@ void Receiver::completePacket() {
}

void Receiver::checkPacketTimeout() {
if (state_ == RecvStates::kBreak) {
// MAB too long, at least 11 bits
framingErrorCount_++;
completePacket();
setConnected(false);
return;
}

if (state_ != RecvStates::kData) {
return;
}
Expand Down

0 comments on commit 4c731cd

Please sign in to comment.