report errors with enttec-open-usb-dmx
This commit is contained in:
parent
d8ce7dc4d6
commit
3c2ed5c322
1 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue