lib/rubyserial/posix.rb in rubyserial-0.2.2 vs lib/rubyserial/posix.rb in rubyserial-0.2.3
- old
+ new
@@ -76,10 +76,10 @@
end
if i == 0
nil
else
- buff.read_string.unpack('C').first
+ buff.get_bytes(0,1).bytes.first
end
end
def gets(sep=$/, limit=nil)
sep = "\n\n" if sep == ''