Skip to content

Commit a342f92

Browse files
committed
Leftovers from cherry-pick
1 parent 7dc997b commit a342f92

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

hardware/esp8266com/esp8266/cores/esp8266/Esp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,9 @@ uint32_t EspClass::getFlashChipSizeByChipId(void) {
281281
}
282282

283283
String EspClass::getResetInfo(void) {
284-
if(resetInfo.reason != 0) {
284+
if(resetInfo.flag != 0) {
285285
char buff[150];
286-
sprintf(&buff[0], "Fatal exception:%d flag:%d epc1:0x%08x epc2:0x%08x epc3:0x%08x excvaddr:0x%08x depc:0x%08x", resetInfo.exccause, resetInfo.reason, resetInfo.epc1, resetInfo.epc2, resetInfo.epc3, resetInfo.excvaddr, resetInfo.depc);
286+
sprintf(&buff[0], "Fatal exception:%d flag:%d epc1:0x%08x epc2:0x%08x epc3:0x%08x excvaddr:0x%08x depc:0x%08x", resetInfo.exccause, resetInfo.flag, resetInfo.epc1, resetInfo.epc2, resetInfo.epc3, resetInfo.excvaddr, resetInfo.depc);
287287
return String(buff);
288288
}
289289
return String("flag: 0");

hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ void user_init(void) {
123123
uart_div_modify(0, UART_CLK_FREQ / (74480));
124124

125125
system_rtc_mem_read(0, &resetInfo, sizeof(struct rst_info));
126-
if(resetInfo.reason == WDT_RST_FLAG || resetInfo.reason == EXCEPTION_RST_FLAG) {
127-
os_printf("Last Reset:\n - flag=%d\n - Fatal exception (%d):\n - epc1=0x%08x,epc2=0x%08x,epc3=0x%08x,excvaddr=0x%08x,depc=0x%08x\n", resetInfo.reason, resetInfo.exccause, resetInfo.epc1, resetInfo.epc2, resetInfo.epc3, resetInfo.excvaddr, resetInfo.depc);
126+
if(resetInfo.flag == WDT_RST_FLAG || resetInfo.flag == EXP_RST_FLAG) {
127+
os_printf("Last Reset:\n - flag=%d\n - Fatal exception (%d):\n - epc1=0x%08x,epc2=0x%08x,epc3=0x%08x,excvaddr=0x%08x,depc=0x%08x\n", resetInfo.flag, resetInfo.exccause, resetInfo.epc1, resetInfo.epc2, resetInfo.epc3, resetInfo.excvaddr, resetInfo.depc);
128128
}
129129
struct rst_info info = { 0 };
130130
system_rtc_mem_write(0, &info, sizeof(struct rst_info));

hardware/esp8266com/esp8266/cores/esp8266/spiffs/spiffs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,6 @@ u32_t SPIFFS_buffer_bytes_for_cache(spiffs *fs, u32_t num_pages);
511511
#endif
512512
#endif
513513

514-
#include "spiffs_esp8266.h"
515514

516515
#ifdef __cplusplus
517516
}

0 commit comments

Comments
 (0)