Skip to content

Commit

Permalink
Improved debugging by including input payload in output data
Browse files Browse the repository at this point in the history
  • Loading branch information
alisdairjsmyth committed Nov 4, 2015
1 parent 63496d1 commit ea488ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qmotion/qmotion.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module.exports = function(RED) {

var blindPosition = Math.ceil((input.blindPosition)/25)*25;
var command = QmotionCommands[blindPosition];
msg.data = msg.payload;
msg.payload = {
channel: input.channel,
command: command
Expand Down

0 comments on commit ea488ee

Please sign in to comment.