Merge pull request #650 from zyp/bitparser_unknown_key

bitparser: Relax unknown keys from error to warning
This commit is contained in:
Gwenhael Goavec-Merou 2026-04-22 09:30:54 +02:00 committed by GitHub
commit 8c498b0617
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -111,9 +111,10 @@ int BitParser::parseHeader()
_hdr["version"] = value; _hdr["version"] = value;
} else if (key == "SW_CRC") { } else if (key == "SW_CRC") {
_hdr["crc"] = value; _hdr["crc"] = value;
} else if (key == "COMPRESS") {
_hdr["compress"] = value;
} else { } else {
printError("Unknown key " + key); printWarn("Unknown key " + key);
return -1;
} }
} }
} }