Skip to content

Commit

Permalink
Update lt_device.c to add lt_get_reboot_reason_string
Browse files Browse the repository at this point in the history
  • Loading branch information
cap9qd committed Feb 21, 2024
1 parent 94e9fb4 commit 6845b9f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cores/common/base/api/lt_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ const char *lt_get_reboot_reason_name(lt_reboot_reason_t reason) {
return "WDT Reset";
case REBOOT_REASON_CRASH:
return "Crash";
case REBOOT_REASON_SLEEP:
return "Sleep Wakeup";
case REBOOT_REASON_SLEEP_GPIO:
return "Sleep Wakeup (GPIO)";
case REBOOT_REASON_SLEEP_RTC:
return "Sleep Wakeup (RTC)";
case REBOOT_REASON_SLEEP_USB:
return "Sleep Wakeup (USB)";
case REBOOT_REASON_DEBUGGER:
return "Debugger";
default:
Expand Down

0 comments on commit 6845b9f

Please sign in to comment.