From ab1cf79e22f9a7e5528f7a6aea377fe51b018a46 Mon Sep 17 00:00:00 2001 From: Musterknabe Date: Wed, 4 Dec 2013 23:51:30 +0100 Subject: [PATCH 1/2] Board.detect() now detects Arduino boards on a Raspberry Pi running Rasbian --- lib/board.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/board.js b/lib/board.js index ebd2ba5..9468364 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 -i "USB"', function(err, stdout, stderr){ var possible = stdout.slice(0, -1).split('\n'), found = false; for (var i in possible) { From 807c8ed0ec2e2946e5311d0e98062fa6ee785d62 Mon Sep 17 00:00:00 2001 From: Musterknabe Date: Wed, 4 Dec 2013 23:57:08 +0100 Subject: [PATCH 2/2] cleanup --- lib/board.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/board.js b/lib/board.js index 9468364..8738975 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 -i "USB"', function(err, stdout, stderr){ + child.exec('ls /dev | grep -i usb', function(err, stdout, stderr){ var possible = stdout.slice(0, -1).split('\n'), found = false; for (var i in possible) {