[LoRaWAN] Add explicit initialization
This commit is contained in:
parent
139574d963
commit
7c50be3158
1 changed files with 1 additions and 1 deletions
|
@ -2219,7 +2219,7 @@ bool LoRaWANNode::execMacCommand(LoRaWANMacCommand_t* cmd, bool saveToEeprom) {
|
||||||
|
|
||||||
} else if (this->band->dataRates[drUp] != RADIOLIB_LORAWAN_DATA_RATE_UNUSED) {
|
} else if (this->band->dataRates[drUp] != RADIOLIB_LORAWAN_DATA_RATE_UNUSED) {
|
||||||
// check if the module supports this data rate
|
// check if the module supports this data rate
|
||||||
DataRate_t dr = { 0 };
|
DataRate_t dr = { .lora = { .bandwidth = 0, .codingRate = 0, .spreadingFactor = 0 };
|
||||||
findDataRate(drUp, &dr);
|
findDataRate(drUp, &dr);
|
||||||
state = this->phyLayer->checkDataRate(dr);
|
state = this->phyLayer->checkDataRate(dr);
|
||||||
if(state == RADIOLIB_ERR_NONE) {
|
if(state == RADIOLIB_ERR_NONE) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue