From 2fb7811dd95d51af65a1d6fba35d331068040486 Mon Sep 17 00:00:00 2001 From: Tom Hollingworth Date: Fri, 25 Oct 2024 14:05:39 -0400 Subject: [PATCH] Fix mode command raw byte to string conversion --- src/packml-commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packml-commands.js b/src/packml-commands.js index 528feaf..c605d45 100644 --- a/src/packml-commands.js +++ b/src/packml-commands.js @@ -25,7 +25,7 @@ exports.stateCommand = (logger, topic, message, state, stateCommandTopic) => { // handle mode commands exports.modeCommand = (logger, message, mode) => { if (isNaN(message)) { - message = message.toLowerCase() + message = message.toString().toLowerCase() } else { message = packmlModel.getModeTextByModeInt(message).toLowerCase() }