From 2737eabd8a9da5aec85d813c05d248d82ac2b57d Mon Sep 17 00:00:00 2001 From: leukipp Date: Mon, 1 Sep 2025 17:22:26 +0200 Subject: [PATCH] fix: mqtt keyboard state #65 --- js/hardware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/hardware.js b/js/hardware.js index d6576a9..5d80d6a 100644 --- a/js/hardware.js +++ b/js/hardware.js @@ -756,7 +756,7 @@ const dbusCall = (path, method, values, callback = null) => { try { const output = cpr.execSync([cmd, ...args].join(" ").trim(), { encoding: "utf8" }); if (typeof callback === "function") { - callback(output.trim().replace(/\0/g, "").split("\n").slice(1).join("\n").trim(), null); + callback(output.trim().replace(/\0/g, ""), null); } } catch (error) { console.error("Call D-Bus:", error.message);