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

One line of logging to rawserial (to make it behave more like the regular serial one)

This commit is contained in:
Dave C-J 2013-11-23 22:00:45 +00:00
parent cef78e745a
commit 636b9a23ba

View File

@ -36,6 +36,7 @@ function RawSerialInNode(n) {
var setupSerial = function() {
node.inp = fs.createReadStream(pre+node.port);
node.log("opened "+pre+node.port);
node.inp.setEncoding('utf8');
var line = "";
node.inp.on('data', function (data) {