<previous message>
<>This may sound simplistic but don't stream data before opening the serial
port... problem solved.


Thanks for responding Dave, however I won't have control over the data flow
once this unit is in the field.  I seem to have fixed this by moving my
SerReceiveFlush(...) like shown below:

/**********************************************************/
error = SysLibFind("Serial Library", &gSerialReference);

if (error)
    {
    FrmAlert(OpenPortAlert);
    }

SerReceiveFlush(gSerialReference, SysTicksPerSecond());    //**works ok
now**//

error = SerOpen(gSerialReference, PORT, BAUD);
SerSetReceiveBuffer (gSerialReference, gSerialBuff, SER_BUFFER_MAX);
/**********************************************************/

But I was wondering if this is a real fix, meaning does the port have to be
open to be cleared?


------------------------
Chris Chayka
Software Engineer
ElanTech, Inc.
[EMAIL PROTECTED]


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to