diff --git a/lib/modem.js b/lib/modem.js index 7f115b0..47d111d 100644 --- a/lib/modem.js +++ b/lib/modem.js @@ -81,9 +81,9 @@ var createModem = function() { modem.open = function(device, options, callback) { if (typeof callback === 'function') { options['parser'] = sp.parsers.raw; - modem.port = new sp.SerialPort(device, options); + modem.port = new sp(device, options); } else { - modem.port = new sp.SerialPort(device, { + modem.port = new sp(device, { parser: sp.parsers.raw }); callback = options;