FIx "cannot bind packed field" (GGC-ARM)

This commit is contained in:
Raphael Coeffic
2021-11-07 20:37:59 +01:00
parent b7ddca5fdb
commit ce97a9fc77
+3 -3
View File
@@ -569,7 +569,7 @@ void RxOptions::checkEvents()
{ {
auto& hwSettings = getPXX2HardwareAndSettingsBuffer(); auto& hwSettings = getPXX2HardwareAndSettingsBuffer();
auto& module = hwSettings.modules[moduleIdx]; auto& module = hwSettings.modules[moduleIdx];
auto& receiver = module.receivers[receiverIdx]; auto& rxInfo = module.receivers[receiverIdx].information;
switch (state) { switch (state) {
case RO_Init: case RO_Init:
@@ -583,8 +583,8 @@ void RxOptions::checkEvents()
case RO_ReadModuleInfo: case RO_ReadModuleInfo:
// times out after a while (see pxx2.cpp) // times out after a while (see pxx2.cpp)
if (moduleState[moduleIdx].mode == MODULE_MODE_NORMAL) { if (moduleState[moduleIdx].mode == MODULE_MODE_NORMAL) {
// uint8_t rxModelId = receiver.information.modelID; // uint8_t rxModelId = rxInfo.modelID;
uint8_t rxVariant = receiver.information.variant; uint8_t rxVariant = rxInfo.variant;
if (isModuleR9MAccess(moduleIdx) && rxVariant == PXX2_VARIANT_EU && if (isModuleR9MAccess(moduleIdx) && rxVariant == PXX2_VARIANT_EU &&
!hwSettings.moduleSettings.txPower) { !hwSettings.moduleSettings.txPower) {
moduleState[moduleIdx].readModuleSettings(&hwSettings.moduleSettings); moduleState[moduleIdx].readModuleSettings(&hwSettings.moduleSettings);