diff --git a/bin/tessel-2.js b/bin/tessel-2.js index 5315a351..8359f2c0 100755 --- a/bin/tessel-2.js +++ b/bin/tessel-2.js @@ -363,4 +363,4 @@ if (require.main === module) { if (global.IS_TEST_ENV) { module.exports.makeCommand = makeCommand; -} \ No newline at end of file +} diff --git a/lib/usb_connection.js b/lib/usb_connection.js index 76f15548..6b0806a5 100644 --- a/lib/usb_connection.js +++ b/lib/usb_connection.js @@ -333,9 +333,8 @@ USB.Scanner.prototype.start = function() { var self = this; if (haveusb) { usb.getDeviceList().forEach(deviceInspector); + usb.on('attach', deviceInspector); - } else { - logs.warn('Skipping USB discovery (No USB controller).'); } function deviceInspector(device) {