Merge pull request #7141 from s-hadinger/crashrecorder_fix

Fix crashdump bad JSON
This commit is contained in:
Theo Arends 2019-12-08 09:06:16 +01:00 committed by GitHub
commit 2381f9781c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -69,10 +69,8 @@ void CrashDump(void)
for (uint32_t i = 0; i < count; i++) {
ESP.rtcUserMemoryRead(i, (uint32_t*)&value, sizeof(value));
if ((value >= 0x40000000) && (value < 0x40300000)) {
if (i > 0) { ResponseAppend_P(PSTR(",")); }
ResponseAppend_P(PSTR("\"%08x\""), value);
}
if (i > 0) { ResponseAppend_P(PSTR(",")); }
ResponseAppend_P(PSTR("\"%08x\""), value);
}
ResponseAppend_P(PSTR("]}"));
}