From 1d502b89c2cd2f8a0e581727cce3cac191981e2a Mon Sep 17 00:00:00 2001 From: Gagan M Date: Thu, 20 Sep 2012 16:30:43 +0530 Subject: [PATCH] Modified to search for "ttyACM*" devices along with "usb*" devices. (Support for Fedora) --- lib/board.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/board.js b/lib/board.js index ebd2ba5..4367057 100644 --- a/lib/board.js +++ b/lib/board.js @@ -77,7 +77,7 @@ util.inherits(Board, events.EventEmitter); Board.prototype.detect = function (cb) { this.log('info', 'attempting to find Arduino board'); var self = this; - child.exec('ls /dev | grep usb', function(err, stdout, stderr){ + child.exec('ls /dev | grep -E "usb|ttyACM"', function(err, stdout, stderr){ var possible = stdout.slice(0, -1).split('\n'), found = false; for (var i in possible) {