[haiku-bugs] Re: [Haiku] #8789: [USB serial] only performs BSerialPort::Read() in 'blocking' mode

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Fri, 10 Aug 2012 20:30:57 -0000

#8789: [USB serial] only performs BSerialPort::Read() in 'blocking' mode
---------------------------+----------------------------
   Reporter:  dsuden       |      Owner:  mmlr
       Type:  bug          |     Status:  new
   Priority:  normal       |  Milestone:  R1
  Component:  Drivers/USB  |    Version:  R1/Development
 Resolution:               |   Keywords:
 Blocked By:               |   Blocking:
Has a Patch:  0            |   Platform:  x86
---------------------------+----------------------------

Comment (by ttcoder):

 No worry ryan Dane and I are just glad it works ;-)  Here's the code from
 the horse's mouth (well technically it's from a source file but
 whatever!), with the part used in BeOS commented out, and the part that
 works in both BeOS and Haiku just beneath it:

 {{{
 ......
 //AMENDED in 4.6.3.5:
 //              if( mInputBuf[mOffset] == 0x0A )
                 if( mInputBuf[mOffset] == '\n' || mInputBuf[mOffset] ==
 '\r' )
 ......
 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8789#comment:15>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: