Commit dd1ba05f authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman 💥
Browse files

Removed attempt to set a write timeout on the serial port, this isnt supported by serial ports.

parent 01edbb8a
......@@ -6,7 +6,6 @@ module Kiss
DEFAULT_READ_BYTES = 1000
SERIAL_READ_TIMEOUT = -1
SERIAL_WRITE_TIMEOUT = 1000
protected
def initialize(com_port,
......@@ -45,7 +44,6 @@ module Kiss
@serial = SerialPort.new(@com_port, @baud, @byte_size, @stop_bits, @parity)
@serial.read_timeout = SERIAL_READ_TIMEOUT
@serial.write_timeout = SERIAL_WRITE_TIMEOUT
if mode_init
@serial.write(mode_init)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment