Skip to content

Commit ff79ddc

Browse files
committed
make SPI1 use more generic
1 parent dd74e57 commit ff79ddc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ void setupNicheGraphics();
137137
#include "nicheGraphics.h"
138138
#endif
139139

140-
#if defined(HW_SPI1_DEVICE) && defined(ELECROW)
140+
#if defined(HW_SPI1_DEVICE) && defined(ARCH_ESP32)
141141
SPIClass SPI1(HSPI);
142142
#endif
143143

@@ -779,7 +779,7 @@ void setup()
779779
SPI.begin();
780780
#else
781781
// ESP32
782-
#if defined(HW_SPI1_DEVICE) && defined(ELECROW)
782+
#if defined(HW_SPI1_DEVICE)
783783
SPI1.begin(LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS);
784784
LOG_DEBUG("SPI1.begin(SCK=%d, MISO=%d, MOSI=%d, NSS=%d)", LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS);
785785
SPI1.setFrequency(4000000);

0 commit comments

Comments
 (0)