[cc2538] fix entropy.c (#3861)

This commit is contained in:
Kamil Sroka
2019-05-28 10:14:04 -07:00
committed by Jonathan Hui
parent df62add5a2
commit ec3d8fbf22
+1 -1
View File
@@ -91,7 +91,7 @@ otError otPlatEntropyGet(uint8_t *aOutput, uint16_t aOutputLength)
otEXPECT_ACTION(aOutput, error = OT_ERROR_INVALID_ARGS);
if (otPlatRadioIsEnabled(sInstance))
if (sInstance && otPlatRadioIsEnabled(sInstance))
{
channel = 11 + (HWREG(RFCORE_XREG_FREQCTRL) - 11) / 5;
otPlatRadioSleep(sInstance);