a few ways off the top of my head:
- just use the longest timeout that works for both.  (good)
- detect the OS version and use the necessary timeout (better)
- use SysTicsPerSecond to normalize the wait into seconds.  Not all units
have the same tick period. (best)
- write your own wait routine to check for characters in the buffer before
calling SrmReceiveWait and either get them or time out. (best)

----- Original Message -----
From: "jimena" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 2:54 PM
Subject: how many ticks should I wait? on SerReceiveWait


Hi,

I have an application how receive several bytes in a loop from serial
port I usually wait 7 ticks (SerReceiveWait(SerialRefNum,26,7);) and
works quite ok in a palm IIIc but I move my application to other palm
m125 and a I couldn't catch the bytes so I move my wait ticks from 7 to
12  and works very well.

However what I need is a function to auto adjusted this wait ticks
because is not possible change this value for different kinds of palms.

Any ideas?


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




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

Reply via email to