fix: B&W MPM protocol offset, subprotocol lists too long (#3112)
* fix: Off by one error for protocol list * fix: Incorrect range for some Frsky subprotocols
This commit is contained in:
@@ -228,8 +228,8 @@ static void processMultiStatusPacket(const uint8_t * data, uint8_t module, uint8
|
||||
else {
|
||||
status.ch_order = data[5];
|
||||
if (len >= 24) {
|
||||
status.protocolNext = data[6];
|
||||
status.protocolPrev = data[7];
|
||||
status.protocolNext = data[6] - 1;
|
||||
status.protocolPrev = data[7] - 1;
|
||||
memcpy(status.protocolName, &data[8], 7);
|
||||
status.protocolName[7] = 0;
|
||||
status.protocolSubNbr = data[15] & 0x0F;
|
||||
|
||||
Reference in New Issue
Block a user