Fix compilation issue when using lora lib

pull/42/head
sh123 2021-11-12 10:36:04 +02:00
rodzic 52ea610c35
commit 34663fb943
2 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -24,7 +24,6 @@
#define CFG_LORA_PIN_B RADIOLIB_NC // (sx127x - dio1, sx126x/sx128x - busy)
#define CFG_LORA_USE_ISR true // always ON for RadioLib
#else
#define CFG_LORA_PIN_DIO1 LORA_IRQ // not used in arduino-LoRa
#define CFG_LORA_USE_ISR false // set to true for ISR usage in arduino-LoRa
#endif
#define CFG_LORA_USE_CAD false // set to true to utilize carrier detection

Wyświetl plik

@ -219,7 +219,7 @@ void Service::setupLora(long loraFreq, long bw, int sf, int cr, int pwr, int syn
#else // USE_RADIOLIB
LoRa.setPins(config_.LoraPinSs, config_.LoraPinRst, config_.LoraPinDio0);
LoRa.setPins(config_.LoraPinSs, config_.LoraPinRst, config_.LoraPinA);
int retryCnt = 0;
while (!LoRa.begin(loraFreq)) {