1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

read the rst reason from the SDK if stored.

add String getResetInfo(void); and struct rst_info * getResetInfoPtr(void);
This commit is contained in:
Markus Sattler
2015-05-25 11:15:29 +02:00
parent 1d2b85ec0e
commit dc52cf82c5
4 changed files with 30 additions and 1 deletions

View File

@ -30,7 +30,7 @@ enum rst_reason {
DEEP_SLEEP_AWAKE_FLAG = 4
};
struct rst_info{
struct rst_info {
uint32 reason;
uint32 exccause;
uint32 epc1;