Skip to content

Commit

Permalink
fix(uart): better to recover than error when bad packet
Browse files Browse the repository at this point in the history
  • Loading branch information
stoprocent committed Dec 22, 2024
1 parent e25a2f6 commit 7effa7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/uart/hci-serial-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class HciSerialParser extends Transform {
return true;
}
} else {
this.emit('error', new Error(`Unknown packet type: ${packetType}`));
this.reset();
}
return false;
}
Expand Down

0 comments on commit 7effa7f

Please sign in to comment.