mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Updated stack offsets for postmortem stack dump.
Changed ets_putc to ets_uart_putc1 to better newline handling.
This commit is contained in:
parent
a8515a7d66
commit
f45da1cf25
@ -89,7 +89,7 @@ static void ets_printf_P(const char *str, ...) {
|
|||||||
vsnprintf(destStr, sizeof(destStr), str, argPtr);
|
vsnprintf(destStr, sizeof(destStr), str, argPtr);
|
||||||
va_end(argPtr);
|
va_end(argPtr);
|
||||||
while (*c) {
|
while (*c) {
|
||||||
ets_putc(*(c++));
|
ets_uart_putc1(*(c++));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,10 +147,10 @@ void __wrap_system_restart_local() {
|
|||||||
// (determined empirically, might break)
|
// (determined empirically, might break)
|
||||||
uint32_t offset = 0;
|
uint32_t offset = 0;
|
||||||
if (rst_info.reason == REASON_SOFT_WDT_RST) {
|
if (rst_info.reason == REASON_SOFT_WDT_RST) {
|
||||||
offset = 0x1b0;
|
offset = 0x1a0;
|
||||||
}
|
}
|
||||||
else if (rst_info.reason == REASON_EXCEPTION_RST) {
|
else if (rst_info.reason == REASON_EXCEPTION_RST) {
|
||||||
offset = 0x1a0;
|
offset = 0x190;
|
||||||
}
|
}
|
||||||
else if (rst_info.reason == REASON_WDT_RST) {
|
else if (rst_info.reason == REASON_WDT_RST) {
|
||||||
offset = 0x10;
|
offset = 0x10;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user