BugID:17718538: fix CHECKED_RETURN whitescan problem
@@ -660,8 +660,10 @@ void lora_fsm(void)
mlmeReq.Req.Join.NbTrials = 3;
} else {
mibReq.Type = MIB_CHANNELS_DEFAULT_DATARATE;
- LoRaMacMibGetRequestConfirm(&mibReq);
+
+ if (LORAMAC_STATUS_OK == LoRaMacMibGetRequestConfirm(&mibReq)) {
mlmeReq.Req.Join.Datarate = mibReq.Param.ChannelsDefaultDatarate;
+ }
mlmeReq.Req.Join.NbTrials = num_trials;
}
@@ -733,6 +735,8 @@ void lora_fsm(void)
LoRaMacMlmeRequest( &mlmeReq );
+ DBG_LINKWAN("Searching Beacon, wait ......");
+
next_tx = false;
}
device_state = DEVICE_STATE_SEND;
