Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rooi committed Apr 14, 2021
1 parent b7528d7 commit c6a891b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/lightwaverf.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ LightwaveRF.prototype.getMessageCode = function() {
return code;
}

LightwaveRF.prototype.send = function(cmd, callback) {
this.sendUdp(cmd, callback);
LightwaveRF.prototype.send = function(rd, cmd, callback) {
this.sendUdp(rd, cmd, callback);
//if (callback) callback();
};

Expand Down Expand Up @@ -311,12 +311,12 @@ LightwaveRF.prototype.exec = function(rd, cmd, callback) {
*
* @return void
*/
LightwaveRF.prototype.sendUdp = function(message, callback){
LightwaveRF.prototype.sendUdp = function(rd, cmd, callback){
//Add to message
var code = this.getMessageCode();

//Prepend code to message
message = code + "," + message;
var message = code + "," + rd + cmd;

this.log("Sending message: " + message);

Expand Down

0 comments on commit c6a891b

Please sign in to comment.