mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 01:47:47 +00:00
[cc2538] fix entropy.c (#3861)
This commit is contained in:
committed by
Jonathan Hui
parent
df62add5a2
commit
ec3d8fbf22
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user