Fix duplicate port

This commit is contained in:
Aaron Mueller 2014-06-23 23:39:49 +02:00
parent f1eeca1dde
commit fa344eca9c

View file

@ -14,7 +14,7 @@ SerialPort.open('/dev/ttyUSB0', 9600, 8, 1, SerialPort::NONE) do |s|
if command == 'on' or command == 'off'
puts 'all ' + command + '...'
['a', 'c', 'c', 'd'].each do |port|
['a', 'b', 'c', 'd'].each do |port|
s.puts(command + ' ' + port)
end
s.puts('led ' + command)