mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 14:47:46 +00:00
[radio] only allow disable in sleep state (#3733)
There's missing error definition for otPlatRadioDisable(). This commit adds an error case OT_ERROR_INVALID_STATE to make sure this is only called when the radio is in sleep mode.
This commit is contained in:
@@ -422,7 +422,8 @@ otError otPlatRadioEnable(otInstance *aInstance);
|
||||
*
|
||||
* @param[in] aInstance The OpenThread instance structure.
|
||||
*
|
||||
* @retval OT_ERROR_NONE Successfully transitioned to Disabled.
|
||||
* @retval OT_ERROR_NONE Successfully transitioned to Disabled.
|
||||
* @retval OT_ERROR_INVALID_STATE The radio was not in sleep state.
|
||||
*
|
||||
*/
|
||||
otError otPlatRadioDisable(otInstance *aInstance);
|
||||
|
||||
Reference in New Issue
Block a user