mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 13:46:37 +00:00
Merge pull request #7141 from s-hadinger/crashrecorder_fix
Fix crashdump bad JSON
This commit is contained in:
commit
2381f9781c
@ -69,10 +69,8 @@ void CrashDump(void)
|
|||||||
|
|
||||||
for (uint32_t i = 0; i < count; i++) {
|
for (uint32_t i = 0; i < count; i++) {
|
||||||
ESP.rtcUserMemoryRead(i, (uint32_t*)&value, sizeof(value));
|
ESP.rtcUserMemoryRead(i, (uint32_t*)&value, sizeof(value));
|
||||||
if ((value >= 0x40000000) && (value < 0x40300000)) {
|
if (i > 0) { ResponseAppend_P(PSTR(",")); }
|
||||||
if (i > 0) { ResponseAppend_P(PSTR(",")); }
|
ResponseAppend_P(PSTR("\"%08x\""), value);
|
||||||
ResponseAppend_P(PSTR("\"%08x\""), value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
ResponseAppend_P(PSTR("]}"));
|
ResponseAppend_P(PSTR("]}"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user