[LoRaWAN] Add explicit initialization

pull/952/head
jgromes 2024-01-27 18:57:11 +01:00
rodzic 139574d963
commit 7c50be3158
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -2219,7 +2219,7 @@ bool LoRaWANNode::execMacCommand(LoRaWANMacCommand_t* cmd, bool saveToEeprom) {
} else if (this->band->dataRates[drUp] != RADIOLIB_LORAWAN_DATA_RATE_UNUSED) {
// 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);
state = this->phyLayer->checkDataRate(dr);
if(state == RADIOLIB_ERR_NONE) {