Skip to content

Commit

Permalink
Fix mode command raw byte to string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Hollingworth committed Oct 25, 2024
1 parent e38c824 commit 2fb7811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packml-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 2fb7811

Please sign in to comment.