All I do in the procalarm callback function is set a new procalarm 10
seconds in the future:

static void HandleAlarm( UInt16 /* cmd */, SysAlarmTriggeredParamType
*paramP )
{
   UInt32 time = TimGetSeconds() + 10;
   
   AlmSetProcAlarm(HandleAlarm, 0, time);
}


>-----Original Message-----
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of John Sutton
>Sent: Wednesday, March 16, 2005 5:53 PM
>To: Palm Developer Forum
>Subject: RE: AlmSetProcAlarm turns on the screen on T5
>
>
>What are you doing inside your procalarm function?
>Some calls can cause the device to wake up. 
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Aaron Hansen
>Sent: 16 March 2005 21:50
>To: Palm Developer Forum
>Subject: AlmSetProcAlarm turns on the screen on T5
>
>Hey Folks,
>
>I built a simple test app in CW9.  I used the app wizard and 
>added a procedure alarm.  The callback only sets another 
>procedure alarm 10 seconds in the future.  I found that when 
>the T5 is turned off, this alarm turns on the screen when it 
>fires.  Is this a known issue?  My understanding is that 
>procedure alarms should not turn on the screen. In fact, when 
>I run this test app on older devices it does not turn on the screen.
>
>I can certainly catch that the device was asleep before the 
>alarm went off and go back to sleep, but it kind of misses the 
>point of a procedure alarm.  Any thoughts or advice would be 
>appreciated.
>
>Thanks,
>
>Aaron
>
>-- 
>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/
>
>

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

Reply via email to