Only check settingsStrings on native

This commit is contained in:
Jonathan Bennett 2024-11-30 12:26:55 -06:00
parent 98661c5b13
commit 00141279af

View File

@ -715,10 +715,12 @@ void setup()
SPI.setRX(LORA_MISO);
SPI.begin(false);
#endif // HW_SPI1_DEVICE
#elif !defined(ARCH_ESP32) // ARCH_RP2040
#elif ARCH_PORTDUINO
if (settingsStrings[spidev] != "ch341") {
SPI.begin();
}
#elif !defined(ARCH_ESP32) // ARCH_RP2040
SPI.begin();
#else
// ESP32
SPI.begin(LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS);