mirror of
https://github.com/opentx/opentx.git
synced 2025-07-21 15:25:17 +03:00
Typo
This commit is contained in:
parent
baa8c6ecba
commit
1ac1e65bca
1 changed files with 2 additions and 3 deletions
|
@ -56,15 +56,14 @@ void processGetHardwareInfoFrame(uint8_t module, uint8_t * frame)
|
|||
uint8_t length = min<uint8_t>(frame[0] - 3, sizeof(PXX2HardwareInformation));
|
||||
if (index == PXX2_HW_INFO_TX_ID && modelId < DIM(PXX2modulesModels)) {
|
||||
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;
|
||||
}
|
||||
else if (index < PXX2_MAX_RECEIVERS_PER_MODULE && modelId < DIM(PXX2receiversModels)) {
|
||||
memcpy(&destination->receivers[index].information, &frame[4], length);
|
||||
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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue