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:
parent
cef78e745a
commit
636b9a23ba
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user