function junction

This commit is contained in:
Timm Bogner 2022-07-07 23:33:16 -05:00
parent a8e94156dd
commit 9b9c6a8e64

View File

@ -625,10 +625,10 @@ void begin_espnow() {
void begin_lora(){
#ifdef USE_LORA
DBG("Initializing LoRa!");
#ifdef ESP32
SPI.begin(SCK, MISO, MOSI);
#endif
LoRa.setPins(SS, RST, DIO0);
#ifdef ESP32
SPI.begin(SPI_SCK, SPI_MISO, SPI_MOSI);
#endif
LoRa.setPins(LORA_SS, LORA_RST, LORA_DIO0);
if (!LoRa.begin(FDRS_BAND)) {
DBG(" Initialization failed!");
while (1);