Skip to content

Commit 16afa83

Browse files
Coderabbitai fix (protocolType is a getter, not a method)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent f749d0b commit 16afa83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/msp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ const MSP = {
263263
if (this.message_checksum === expectedChecksum) {
264264
// message received, store dataview
265265
this.dataView = new DataView(this.message_buffer, 0, this.message_length_expected);
266-
} else if (serial.protocolType() === "bluetooth" && serial._protocol?.shouldBypassCrc?.(expectedChecksum)) {
266+
} else if (serial.protocolType === "bluetooth" && serial._protocol?.shouldBypassCrc?.(expectedChecksum)) {
267267
this.dataView = new DataView(this.message_buffer, 0, this.message_length_expected);
268268
this.crcError = false; // Override the CRC error for this specific case
269269
} else {

0 commit comments

Comments
 (0)