fusee: fix log_inverted flag parse

This commit is contained in:
Michael Scire 2021-09-08 14:32:15 -07:00
parent 44beeecc9e
commit 31d44d821f

View file

@ -651,7 +651,7 @@ namespace ams::nxboot {
} else if (std::strcmp(entry.key, "log_baud_rate") == 0) {
storage_ctx.log_baud_rate = ParseDecimalInteger(entry.value);
} else if (std::strcmp(entry.key, "log_inverted") == 0) {
if (entry.value[0] == 1) {
if (entry.value[0] == '1') {
storage_ctx.log_flags |= uart::Flag_Inverted;
}
}