lib/arduino_firmata/main.rb in arduino_firmata-0.1.4 vs lib/arduino_firmata/main.rb in arduino_firmata-0.1.5
- old
+ new
@@ -1,8 +1,8 @@
module ArduinoFirmata
def self.list
- Dir.entries('/dev').grep(/tty\.?usb/i).map{|fname| "/dev/#{fname}"}
+ Dir.entries('/dev').grep(/tty\.?(usb|acm)/i).map{|fname| "/dev/#{fname}"}
end
def self.connect(serial_name=nil, params={}, &block)
serial_name = self.list[0] unless serial_name