Typo
This commit is contained in:
@@ -56,15 +56,14 @@ void processGetHardwareInfoFrame(uint8_t module, uint8_t * frame)
|
|||||||
uint8_t length = min<uint8_t>(frame[0] - 3, sizeof(PXX2HardwareInformation));
|
uint8_t length = min<uint8_t>(frame[0] - 3, sizeof(PXX2HardwareInformation));
|
||||||
if (index == PXX2_HW_INFO_TX_ID && modelId < DIM(PXX2modulesModels)) {
|
if (index == PXX2_HW_INFO_TX_ID && modelId < DIM(PXX2modulesModels)) {
|
||||||
memcpy(&destination->information, &frame[4], length);
|
memcpy(&destination->information, &frame[4], length);
|
||||||
if (destination->information.capabilities & ~((1 << RECEIVER_CAPABILITY_COUNT) - 1))
|
if (destination->information.capabilities & ~((1 << MODULE_CAPABILITY_COUNT) - 1))
|
||||||
destination->information.capabilityNotSupported = true;
|
destination->information.capabilityNotSupported = true;
|
||||||
}
|
}
|
||||||
else if (index < PXX2_MAX_RECEIVERS_PER_MODULE && modelId < DIM(PXX2receiversModels)) {
|
else if (index < PXX2_MAX_RECEIVERS_PER_MODULE && modelId < DIM(PXX2receiversModels)) {
|
||||||
memcpy(&destination->receivers[index].information, &frame[4], length);
|
memcpy(&destination->receivers[index].information, &frame[4], length);
|
||||||
destination->receivers[index].timestamp = get_tmr10ms();
|
destination->receivers[index].timestamp = get_tmr10ms();
|
||||||
if (destination->receivers[index].information.capabilities & ~((1 << MODULE_CAPABILITY_COUNT) - 1))
|
if (destination->receivers[index].information.capabilities & ~((1 << RECEIVER_CAPABILITY_COUNT) - 1))
|
||||||
destination->information.capabilityNotSupported = true;
|
destination->information.capabilityNotSupported = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user