readable state

This commit is contained in:
folkert van heusden 2024-04-25 20:07:00 +02:00
parent e020ff525f
commit 5ded69d437
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -731,7 +731,7 @@ void serialize_state(console *const cnsl, const bus *const b, const std::string
FILE *fh = fopen(filename.c_str(), "w");
if (fh) {
if (json_dumpf(j, fh, 0) == 0)
if (json_dumpf(j, fh, JSON_INDENT(4)) == 0)
ok = true;
fclose(fh);