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>
This commit is contained in:
parent
bb5a929c62
commit
f3c43cc393
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ int z_impl_hwinfo_get_reset_cause(uint32_t *cause)
|
|||
break;
|
||||
case ESP_RST_PANIC:
|
||||
*cause = RESET_CPU_LOCKUP;
|
||||
break;
|
||||
case ESP_RST_BROWNOUT:
|
||||
*cause = RESET_BROWNOUT;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue