report errors with enttec-open-usb-dmx

This commit is contained in:
Sebastian Wiedenroth 2016-10-13 23:36:49 +02:00
parent d8ce7dc4d6
commit 3c2ed5c322

View file

@ -17,9 +17,11 @@ function EnttecOpenUsbDMX(device_id, options) {
'stopbits': 2, 'stopbits': 2,
'parity': 'none' 'parity': 'none'
}, true, function(err) { }, true, function(err) {
if(!err) { if(err) {
self.start() console.log(err)
return
} }
self.start()
}) })
} }