I am writing a program that is using serSetWakeupHandler and
serPrimeWakeup handler. Everything works OK when setting up the
handler and priming it for the first time, like this:


// set our wakeup handler
error = SerSetWakeupHandler(serRef, &KeyboardHandshakeCallback, 0);


// prime our wakeup handler
error = SerPrimeWakeupHandler(serRef, serHandshakeReplyLength);


Everything works OK, when I receive the bytes, my callback is
executed.


However, the callback can't re-prime itself with:


// prime our wakeup handler
error = SerPrimeWakeupHandler(serRef, serKeyStringLength);


Using the new serial manager versions of these functions works fine,
the callback re-primes itself fine. The old serial manager version
just doesn't get called back again.


Any ideas?


Thanks!

Toby Boreham

-- 
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