forked from toholio/ruby-serialport
-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
When I run the test, I get the following output:
miniterm.rb:11:in `initialize': wrong number of arguments (5 for 1..2) (ArgumentError)
from miniterm.rb:11:in `new'
from miniterm.rb:11:in `<main>'
Does that make sense? It is trying to run:
sp = SerialPort.new(ARGV[0].to_i, ARGV[1].to_i, ARGV[2].to_i, ARGV[3].to_i, SerialPort::NONE)but the new method is looking for 2 args, looking at api docs:
(SerialPort) new(port, *params)
Metadata
Metadata
Assignees
Labels
No labels