From 7fccf3840efb741e52307d835339202802a8a7b6 Mon Sep 17 00:00:00 2001 From: Mason Tran Date: Sun, 25 Oct 2020 21:19:28 -0400 Subject: [PATCH] [efr32] use OT_PLAT_RESET_REASON_OTHER for brown-out/EM4 reset (#5699) --- examples/platforms/efr32/src/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/platforms/efr32/src/misc.c b/examples/platforms/efr32/src/misc.c index e13fe40a4..210ab542c 100644 --- a/examples/platforms/efr32/src/misc.c +++ b/examples/platforms/efr32/src/misc.c @@ -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;