Skip to content

Commit 2fb7811

Browse files
author
Tom Hollingworth
committed
Fix mode command raw byte to string conversion
1 parent e38c824 commit 2fb7811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packml-commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ exports.stateCommand = (logger, topic, message, state, stateCommandTopic) => {
2525
// handle mode commands
2626
exports.modeCommand = (logger, message, mode) => {
2727
if (isNaN(message)) {
28-
message = message.toLowerCase()
28+
message = message.toString().toLowerCase()
2929
} else {
3030
message = packmlModel.getModeTextByModeInt(message).toLowerCase()
3131
}

0 commit comments

Comments
 (0)