mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Quick fix for serial hangs (with serialport1.3.1)
While we investigate further.
This commit is contained in:
parent
c47c72cf48
commit
b882846516
@ -149,7 +149,7 @@ var serialPool = function() {
|
|||||||
obj.serial.on('open',function() {
|
obj.serial.on('open',function() {
|
||||||
util.log("[serial] serial port "+port+" opened at "+baud+" baud");
|
util.log("[serial] serial port "+port+" opened at "+baud+" baud");
|
||||||
if (obj.tout) { clearTimeout(obj.tout); }
|
if (obj.tout) { clearTimeout(obj.tout); }
|
||||||
obj.serial.flush();
|
//obj.serial.flush();
|
||||||
obj._emitter.emit('ready');
|
obj._emitter.emit('ready');
|
||||||
});
|
});
|
||||||
obj.serial.on('data',function(d) {
|
obj.serial.on('data',function(d) {
|
||||||
|
Loading…
Reference in New Issue
Block a user