This is what I do:-
do Irxxxx() call.
if (busy) set wait = 1;
while (wait) { if (EvtEventAvail...() SysHandleEvent();) }
don't do sleep inside while loop. But you can use one of those
Evt() functions that wait for an event.
In your call back function (given during Ir setup), set wait == 0
when you get 'not busy' event.
"Charles Rezsonya" <[EMAIL PROTECTED]> wrote in message
news:26419@palm-dev-forum...
>
> heya,
>
> i'm curious as to how others have handled when they make a call but get ir
> media busy (this is 'cause i'm placing some ir calls after another). what
> it doc's is that you can try the call l8r when media isn't busy. so i
test
> if media's busy before i make my call. i caught it busy a few times and
if
> i don't put a frm alert into the routine to wait for ir to die down, it
> gets either locked or can't become un busyed b4 failing. i tried putting
in
> systaskdelay but i am not sure if that delays the ir media too (making the
> wait ineffective). has anyone ran into this? how did they handle
waiting?
> i'm trying to minimize user interaction/interferance.
>
> tia,
> Charles Rezsonya
> Palm Developer and Software Engineer
> [EMAIL PROTECTED]
> ICQ 6470210
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/