Skip to content

Commit

Permalink
set the timeout to a proper value.
Browse files Browse the repository at this point in the history
  • Loading branch information
tillepille committed Jan 19, 2018
1 parent d7fa2f1 commit 3faa36d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ function mainController(sys, familyCode, switchCode, onOff){
default:
returnCode = 404;
}
console.log("Sending Code " + code +" now...");
sleep(100, function(){rfEmitter.sendCode(code);});
console.log(new Date().toString() + " Sending Code " + code +" now...");
sleep(300, function(){rfEmitter.sendCode(code);});
return returnCode;

}else {
Expand Down Expand Up @@ -100,7 +100,7 @@ function generateIntertechnoCode(familyCode, switchCode, onOff){
}else{
finalCode += "F0";
}
console.log("generated inter Code: "+finalCode);
//console.log("generated inter Code: "+finalCode);
return finalCode;
}

Expand Down

0 comments on commit 3faa36d

Please sign in to comment.