lib/arduino_firmata/arduino.rb in arduino_firmata-0.2.4 vs lib/arduino_firmata/arduino.rb in arduino_firmata-0.2.5
- old
+ new
@@ -158,15 +158,15 @@
end
private
def write(cmd)
return if status == Status::CLOSE
- @serial.write_nonblock cmd.chr
+ @serial.write cmd.chr
end
def read
return if status == Status::CLOSE
- @serial.read_nonblock 9600 rescue EOFError
+ @serial.read 9600 rescue EOFError
end
def process_input
StringIO.new(String read).each_byte.each do |input_data|
command = nil