mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-23 16:25:19 +03:00
Fix decoding MSPv2 message codes with high byte != 0
OR the high byte of the MSPv2 code with the "code" variable rather than with this.message_length_expected. This wasn't caught earlier because it would work for MSPv2 commands with the high byte set to zero anyway.
This commit is contained in:
parent
836f72661c
commit
8fd6e93fe2
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ var MSP = {
|
|||
this.state = this.decoder_states.CODE_V2_HIGH;
|
||||
break;
|
||||
case this.decoder_states.CODE_V2_HIGH:
|
||||
this.message_length_expected |= data[i] << 8;
|
||||
this.code |= data[i] << 8;
|
||||
this.state = this.decoder_states.PAYLOAD_LENGTH_V2_LOW;
|
||||
break;
|
||||
case this.decoder_states.PAYLOAD_LENGTH_JUMBO_LOW:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue