diff --git a/drivers/enttec-open-usb-dmx.js b/drivers/enttec-open-usb-dmx.js index 75a14d3..0883c9e 100644 --- a/drivers/enttec-open-usb-dmx.js +++ b/drivers/enttec-open-usb-dmx.js @@ -1,6 +1,6 @@ "use strict" -var SerialPort = require("serialport").SerialPort +var SerialPort = require("serialport") function EnttecOpenUsbDMX(device_id, options) { var self = this @@ -16,7 +16,7 @@ function EnttecOpenUsbDMX(device_id, options) { 'databits': 8, 'stopbits': 2, 'parity': 'none' - }, true, function(err) { + }, function(err) { if(err) { console.log(err) return diff --git a/drivers/enttec-usb-dmx-pro.js b/drivers/enttec-usb-dmx-pro.js index 7d0837c..8954f7e 100644 --- a/drivers/enttec-usb-dmx-pro.js +++ b/drivers/enttec-usb-dmx-pro.js @@ -1,6 +1,6 @@ "use strict" -var SerialPort = require("serialport").SerialPort +var SerialPort = require("serialport") var ENTTEC_PRO_DMX_STARTCODE = 0x00 , ENTTEC_PRO_START_OF_MSG = 0x7e @@ -20,7 +20,7 @@ function EnttecUSBDMXPRO(device_id, options) { 'databits': 8, 'stopbits': 2, 'parity': 'none' - }, true, function(err) { + }, function(err) { if(!err) { self.send_universe() } diff --git a/package.json b/package.json index d5ef51d..bf75fd4 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "light control" ], "dependencies": { - "serialport": "2.1.x", + "serialport": "4.0.x", "socket.io": "0.9.x", "connect": "2.11.x", "express": "3.4.x",