kopia lustrzana https://github.com/sh123/esp32_loraprs
Pass Dio1 pin to module
rodzic
a68ce8d6e8
commit
5e33216c83
|
@ -196,7 +196,7 @@ void Service::setupLora(long loraFreq, long bw, int sf, int cr, int pwr, int syn
|
|||
isImplicitHeaderMode_ = sf == 6;
|
||||
|
||||
#ifdef USE_RADIOLIB
|
||||
radio_ = std::make_shared<MODULE_NAME>(new Module(config_.LoraPinSs, config_.LoraPinDio0, config_.LoraPinRst, RADIOLIB_NC));
|
||||
radio_ = std::make_shared<MODULE_NAME>(new Module(config_.LoraPinSs, config_.LoraPinDio0, config_.LoraPinRst, config_.LoraPinDio1));
|
||||
int state = radio_->begin((float)loraFreq / 1e6, (float)bw / 1e3, sf, cr, sync, pwr);
|
||||
if (state != ERR_NONE) {
|
||||
LOG_ERROR("Radio start error:", state);
|
||||
|
|
Ładowanie…
Reference in New Issue