1
0
Fork 0
Browse Source

Add detecting URF stick on Pi.

master
flabbergast 9 years ago
parent
commit
8f140295ba
  1. 4
      modules/serial_node.js

4
modules/serial_node.js

@ -74,7 +74,8 @@ var detectSerialOnRaspberryPI = function() @@ -74,7 +74,8 @@ var detectSerialOnRaspberryPI = function()
if (obj.hasOwnProperty('pnpId')){
// FTDI captures the duemilanove //
// Arduino captures the leonardo //
if (obj.pnpId.search('FTDI') != -1 || obj.pnpId.search('Arduino') != -1) {
// CC1111 captures the URF stick //
if (obj.pnpId.search('FTDI') != -1 || obj.pnpId.search('Arduino') != -1 || obj.pnpId.search('CC1111') != -1) {
port = obj.comName;
}
}
@ -126,3 +127,4 @@ var sendDataOverSerial = function(buffer) @@ -126,3 +127,4 @@ var sendDataOverSerial = function(buffer)
}
detectSerialOnOSX();
//detectSerialOnRaspberryPI();

Loading…
Cancel
Save