Skip to content

Commit

Permalink
fixed conversion to string for ramp
Browse files Browse the repository at this point in the history
  • Loading branch information
rbswift authored Jul 10, 2022
1 parent cae3fed commit e1f82d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

1 comment on commit e1f82d8

@bdnstn
Copy link

@bdnstn bdnstn commented on e1f82d8 Jul 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix confirmed.

Please sign in to comment.