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,
'parity': 'none'
}, true, function(err) {
if(!err) {
self.start()
if(err) {
console.log(err)
return
}
self.start()
})
}