kopia lustrzana https://github.com/sh123/esp32_loraprs
Fix compilation issue when using lora lib
rodzic
52ea610c35
commit
34663fb943
1
config.h
1
config.h
|
@ -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
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Ładowanie…
Reference in New Issue