Fix duplicate port
This commit is contained in:
parent
f1eeca1dde
commit
fa344eca9c
1 changed files with 1 additions and 1 deletions
2
emori.rb
2
emori.rb
|
@ -14,7 +14,7 @@ SerialPort.open('/dev/ttyUSB0', 9600, 8, 1, SerialPort::NONE) do |s|
|
||||||
|
|
||||||
if command == 'on' or command == 'off'
|
if command == 'on' or command == 'off'
|
||||||
puts 'all ' + command + '...'
|
puts 'all ' + command + '...'
|
||||||
['a', 'c', 'c', 'd'].each do |port|
|
['a', 'b', 'c', 'd'].each do |port|
|
||||||
s.puts(command + ' ' + port)
|
s.puts(command + ' ' + port)
|
||||||
end
|
end
|
||||||
s.puts('led ' + command)
|
s.puts('led ' + command)
|
||||||
|
|
Loading…
Reference in a new issue