mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-07 20:19:25 +00:00
Removed one if by employing &&
This commit is contained in:
parent
3237885897
commit
e8577e8b66
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user