lib/rubyserial/windows.rb in rubyserial-0.1.0 vs lib/rubyserial/windows.rb in rubyserial-0.1.1

- old
+ new

@@ -51,10 +51,10 @@ end def getbyte buff = FFI::MemoryPointer.new :char, 1 count = FFI::MemoryPointer.new :uint32, 1 - err = RubySerial::Win32.ReadFile(@fd, buff, size, count, nil) + err = RubySerial::Win32.ReadFile(@fd, buff, 1, count, nil) if err == 0 raise RubySerial::Exception, RubySerial::Win32::ERROR_CODES[FFI.errno] end if count.read_string.unpack('H4').join().to_i(16) == 0