From 3c2ed5c32235521d42ac27f413190913d4356ca1 Mon Sep 17 00:00:00 2001 From: Sebastian Wiedenroth Date: Thu, 13 Oct 2016 23:36:49 +0200 Subject: [PATCH] report errors with enttec-open-usb-dmx --- drivers/enttec-open-usb-dmx.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/enttec-open-usb-dmx.js b/drivers/enttec-open-usb-dmx.js index 3c31c67..75a14d3 100644 --- a/drivers/enttec-open-usb-dmx.js +++ b/drivers/enttec-open-usb-dmx.js @@ -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() }) }