Method: OpenC3::TemplateProtocol#read_data
- Defined in:
- lib/openc3/interfaces/protocols/template_protocol.rb
#read_data(data) ⇒ Object
108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/openc3/interfaces/protocols/template_protocol.rb', line 108 def read_data(data) return super(data) if data.length <= 0 # Drop all data until the initial_read_delay is complete. # This gets rid of unused welcome messages, # prompts, and other junk on initial connections if @initial_read_delay and @initial_read_delay_needed and @connect_complete_time return :STOP if Time.now < @connect_complete_time @initial_read_delay_needed = false end super(data) end |