mirror of
https://github.com/espressif/openthread.git
synced 2026-08-05 02:17:47 +00:00
[efr32] use OT_PLAT_RESET_REASON_OTHER for brown-out/EM4 reset (#5699)
This commit is contained in:
@@ -84,7 +84,7 @@ otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
|
||||
(sResetCause & EMU_RSTCAUSE_DVDDBOD) || (sResetCause & EMU_RSTCAUSE_DVDDLEBOD) ||
|
||||
(sResetCause & EMU_RSTCAUSE_EM4))
|
||||
{
|
||||
reason = OT_PLAT_RESET_REASON_ASSERT;
|
||||
reason = OT_PLAT_RESET_REASON_OTHER;
|
||||
}
|
||||
#endif
|
||||
#if defined(_RMU_RSTCAUSE_MASK)
|
||||
@@ -111,7 +111,7 @@ otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
|
||||
else if ((sResetCause & RMU_RSTCAUSE_AVDDBOD) || (sResetCause & RMU_RSTCAUSE_DECBOD) ||
|
||||
(sResetCause & RMU_RSTCAUSE_DVDDBOD) || (sResetCause & RMU_RSTCAUSE_EM4RST))
|
||||
{
|
||||
reason = OT_PLAT_RESET_REASON_ASSERT;
|
||||
reason = OT_PLAT_RESET_REASON_OTHER;
|
||||
}
|
||||
#endif
|
||||
return reason;
|
||||
|
||||
Reference in New Issue
Block a user