Skip to content

Commit

Permalink
Merge pull request #182 from quo/pr-sp7fix
Browse files Browse the repository at this point in the history
Fix SP7 invalid data workaround
  • Loading branch information
StollD authored Dec 22, 2024
2 parents 7dc28f5 + 745625f commit e211f37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ipts/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ class Parser {
* This causes a parse error, because the "0b" should be "0f".
* So let's just ignore these packets.
*/
if (reader.size() == 4)
if (reader.size() == 4) {
reader.skip(reader.size());
return;
}

this->parse_report_frames(sub);
break;
Expand Down

0 comments on commit e211f37

Please sign in to comment.