Method: OpenC3::SerialInterface#set_option

Defined in:
lib/openc3/interfaces/serial_interface.rb

#set_option(option_name, option_values) ⇒ Object

Supported Options FLOW_CONTROL - Flow control method NONE or RTSCTS. Defaults to NONE



86
87
88
89
90
91
92
93
94
# File 'lib/openc3/interfaces/serial_interface.rb', line 86

def set_option(option_name, option_values)
  super(option_name, option_values)
  case option_name.upcase
  when 'FLOW_CONTROL'
    @flow_control = option_values[0]
  when 'DATA_BITS'
    @data_bits = option_values[0].to_i
  end
end