mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-19 16:29:31 +00:00
Only check settingsStrings on native
This commit is contained in:
parent
98661c5b13
commit
00141279af
@ -715,10 +715,12 @@ void setup()
|
|||||||
SPI.setRX(LORA_MISO);
|
SPI.setRX(LORA_MISO);
|
||||||
SPI.begin(false);
|
SPI.begin(false);
|
||||||
#endif // HW_SPI1_DEVICE
|
#endif // HW_SPI1_DEVICE
|
||||||
#elif !defined(ARCH_ESP32) // ARCH_RP2040
|
#elif ARCH_PORTDUINO
|
||||||
if (settingsStrings[spidev] != "ch341") {
|
if (settingsStrings[spidev] != "ch341") {
|
||||||
SPI.begin();
|
SPI.begin();
|
||||||
}
|
}
|
||||||
|
#elif !defined(ARCH_ESP32) // ARCH_RP2040
|
||||||
|
SPI.begin();
|
||||||
#else
|
#else
|
||||||
// ESP32
|
// ESP32
|
||||||
SPI.begin(LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS);
|
SPI.begin(LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS);
|
||||||
|
Loading…
Reference in New Issue
Block a user