Removed one if by employing &&

This commit is contained in:
Patrick Siegl 2025-01-05 14:35:40 +00:00
parent 3237885897
commit e8577e8b66

View File

@ -863,8 +863,7 @@ void setup()
}
};
for (auto& loraModule : loraModules) {
if (settingsMap[loraModule.cfgName]) {
if (!rIf) {
if (settingsMap[loraModule.cfgName] && !rIf) {
LOG_DEBUG("Activate %s radio on SPI port %s", loraModule.strName, settingsStrings[spidev].c_str());
if (loraModule.ch341halsupport
&& settingsStrings[spidev] == "ch341") {
@ -883,7 +882,6 @@ void setup()
}
}
}
}
#elif defined(HW_SPI1_DEVICE)
LockingArduinoHal *RadioLibHAL = new LockingArduinoHal(SPI1, spiSettings);
#else // HW_SPI1_DEVICE