We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7224fba commit 90c02f2Copy full SHA for 90c02f2
features/lorawan/LoRaWANStack.cpp
@@ -467,7 +467,7 @@ lorawan_status_t LoRaWANStack::set_channel_data_rate(uint8_t data_rate)
467
468
loramac_mib_req_confirm_t mib_params;
469
mib_params.type = MIB_ADR;
470
- if (mib_get_request(&mib_params) == true) {
+ if (mib_get_request(&mib_params) != LORAWAN_STATUS_OK) {
471
tr_error("Cannot set data rate. Please turn off ADR first.");
472
return LORAWAN_STATUS_PARAMETER_INVALID;
473
}
0 commit comments