mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
Cosmetics
This commit is contained in:
parent
f4bfea8e59
commit
f897a7daf6
2 changed files with 3 additions and 3 deletions
|
@ -102,7 +102,7 @@ void onUpdateStateChanged()
|
|||
{
|
||||
if (reusableBuffer.sdManager.otaUpdateInformation.step == BIND_INFO_REQUEST) {
|
||||
uint8_t modelId = reusableBuffer.sdManager.otaUpdateInformation.receiverInformation.modelID;
|
||||
if (modelId > 0 && modelId < DIM(PXX2ReceiversModels)) {
|
||||
if (modelId > 0 && modelId < DIM(PXX2ReceiversNames)) {
|
||||
if (isReceiverOptionAvailable(modelId, RECEIVER_OPTION_OTA)) {
|
||||
POPUP_CONFIRMATION(getPXX2ReceiverName(modelId), onUpdateConfirmation);
|
||||
char *tmp = strAppend(reusableBuffer.sdManager.otaReceiverVersion, TR_CURRENT_VERSION);
|
||||
|
|
|
@ -54,12 +54,12 @@ void processGetHardwareInfoFrame(uint8_t module, uint8_t * frame)
|
|||
uint8_t index = frame[3];
|
||||
uint8_t modelId = frame[4];
|
||||
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(PXX2ModulesNames)) {
|
||||
memcpy(&destination->information, &frame[4], length);
|
||||
if (destination->information.capabilities & ~((1 << MODULE_CAPABILITY_COUNT) - 1))
|
||||
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(PXX2ReceiversNames)) {
|
||||
memcpy(&destination->receivers[index].information, &frame[4], length);
|
||||
destination->receivers[index].timestamp = get_tmr10ms();
|
||||
if (destination->receivers[index].information.capabilities & ~((1 << RECEIVER_CAPABILITY_COUNT) - 1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue