Skip to content

Commit f3c43cc

Browse files
committed
drivers: hwinfo: esp32: fix reset cause handling for ESP_RST_PANIC
Added a missing break statement for the ESP_RST_PANIC case. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent bb5a929 commit f3c43cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hwinfo/hwinfo_esp32.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ int z_impl_hwinfo_get_reset_cause(uint32_t *cause)
8585
break;
8686
case ESP_RST_PANIC:
8787
*cause = RESET_CPU_LOCKUP;
88+
break;
8889
case ESP_RST_BROWNOUT:
8990
*cause = RESET_BROWNOUT;
9091
break;

0 commit comments

Comments
 (0)