1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

remove extraneous debug messages from serialport

This commit is contained in:
Dave Conway-Jones 2019-04-11 16:33:17 +01:00
parent 41acbf5af7
commit d40f433332
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
2 changed files with 2 additions and 4 deletions

View File

@ -202,7 +202,6 @@ module.exports = function(RED) {
waitfor = waitfor.replace("\\n","\n").replace("\\r","\r").replace("\\t","\t").replace("\\e","\e").replace("\\f","\f").replace("\\0","\0"); // jshint ignore:line
if (waitfor.substr(0,2) == "0x") { waitfor = parseInt(waitfor,16); }
if (waitfor.length === 1) { waitfor = waitfor.charCodeAt(0); }
console.log("WF2",waitfor);
var active = (waitfor === "") ? true : false;
var buf = new Buffer.alloc(bufSize);
@ -215,8 +214,7 @@ module.exports = function(RED) {
splitc = new Buffer.from(newline.replace("\\n","\n").replace("\\r","\r").replace("\\t","\t").replace("\\e","\e").replace("\\f","\f").replace("\\0","\0")); // jshint ignore:line
}
if (addchar === true) { addchar = splitc; }
console.log("AC:",addchar,":");
connections[id] = (function() {
var obj = {
_emitter: new events.EventEmitter(),

View File

@ -1,6 +1,6 @@
{
"name" : "node-red-node-serialport",
"version" : "0.8.0",
"version" : "0.8.1",
"description" : "Node-RED nodes to talk to serial ports",
"dependencies" : {
"serialport" : "^7.1.4"