From e1f82d8c380304eedb6e553829d1e558b3b256fa Mon Sep 17 00:00:00 2001 From: rbswift <50788724+rbswift@users.noreply.github.com> Date: Sun, 10 Jul 2022 23:12:21 +1000 Subject: [PATCH] fixed conversion to string for ramp --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index d279868..3857d07 100755 --- a/index.js +++ b/index.js @@ -161,7 +161,8 @@ client.on('connect', function() { // When connected // Ramp, increase/decrease, on/off control case "ramp": - switch(message.toUpperCase()) { + message = String(message); + switch(message.toUpperCase()) { case "INCREASE": eventEmitter.on('level',function increaseLevel(address,level) { if (address == parts[2]+'/'+parts[3]+'/'+parts[4]) {