Skip to content
Snippets Groups Projects
Commit c1fc5f07 authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman :boom:
Browse files

Added some missing super calls to KISSSerial.

parent 8a7ec2bb
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ module KISS ...@@ -17,6 +17,7 @@ module KISS
read_bytes=DEFAULT_READ_BYTES, read_bytes=DEFAULT_READ_BYTES,
strip_df_start=true) strip_df_start=true)
super(strip_df_start) super(strip_df_start)
@com_port = com_port @com_port = com_port
@baud = baud @baud = baud
@parity = parity @parity = parity
...@@ -40,6 +41,8 @@ module KISS ...@@ -40,6 +41,8 @@ module KISS
public public
def connect(mode_init=nil, **kwargs) def connect(mode_init=nil, **kwargs)
super
@serial = SerialPort.new(@com_port, @baud, @byte_size, @stop_bits, @parity) @serial = SerialPort.new(@com_port, @baud, @byte_size, @stop_bits, @parity)
@serial.read_timeout = SERIAL_READ_TIMEOUT @serial.read_timeout = SERIAL_READ_TIMEOUT
@serial.write_timeout = SERIAL_WRITE_TIMEOUT @serial.write_timeout = SERIAL_WRITE_TIMEOUT
...@@ -61,6 +64,7 @@ module KISS ...@@ -61,6 +64,7 @@ module KISS
public public
def close def close
super super
if @exit_kiss if @exit_kiss
write_interface(MODE_END) write_interface(MODE_END)
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment