From 31d44d821fd2892627eef702293cb00fe8f061f7 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 8 Sep 2021 14:32:15 -0700 Subject: [PATCH] fusee: fix log_inverted flag parse --- fusee/program/source/fusee_setup_horizon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fusee/program/source/fusee_setup_horizon.cpp b/fusee/program/source/fusee_setup_horizon.cpp index 067090e38..a0d73f5af 100644 --- a/fusee/program/source/fusee_setup_horizon.cpp +++ b/fusee/program/source/fusee_setup_horizon.cpp @@ -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; } }