mirror of
https://github.com/espressif/openthread.git
synced 2026-08-09 04:07:47 +00:00
[mac] update the log message for otPlatRadioSleep() failure (#2123)
This commit is contained in:
committed by
Jonathan Hui
parent
97a2fc4cc3
commit
3523796722
@@ -1155,15 +1155,12 @@ otError Mac::RadioSleep(void)
|
||||
|
||||
#endif
|
||||
|
||||
SuccessOrExit(error = otPlatRadioSleep(&GetInstance()));
|
||||
error = otPlatRadioSleep(&GetInstance());
|
||||
VerifyOrExit(error != OT_ERROR_NONE);
|
||||
|
||||
otLogWarnMac(GetInstance(), "otPlatRadioSleep() failed with error %s", otThreadErrorToString(error));
|
||||
|
||||
exit:
|
||||
|
||||
if (error != OT_ERROR_NONE)
|
||||
{
|
||||
otLogWarnMac(GetInstance(), "otPlatRadioSleep() failed with error %s", otThreadErrorToString(error));
|
||||
}
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user