enttec-open-usb-dmx: set rst

This finally makes the enttec-open-usb-dmx driver usable!
Thanks to @kfstudio for debugging this issue.
This commit is contained in:
Sebastian Wiedenroth 2018-02-19 17:13:07 +01:00
parent bb393fe30c
commit f27a9c9ea0

View file

@ -32,9 +32,9 @@ EnttecOpenUsbDMX.prototype.send_universe = function() {
} }
// toggle break // toggle break
self.dev.set({brk: true}, function(err, r) { self.dev.set({brk: true, rts: true}, function(err, r) {
setTimeout(function() { setTimeout(function() {
self.dev.set({brk: false}, function(err, r) { self.dev.set({brk: false, rts: true}, function(err, r) {
setTimeout(function() { setTimeout(function() {
self.dev.write(Buffer.concat([Buffer([0]), self.universe.slice(1)])) self.dev.write(Buffer.concat([Buffer([0]), self.universe.slice(1)]))
}, 1) }, 1)