Well it just gets a little complicated if you have an alarm already set, but
you need to wake the device up. It involves saving the current alarm,
setting an imediate alarm to wake the device, then reseting the old alarm.
Not much work really, I just hoped there was a nice wake device function I
[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 7:02 PM
Subject: Re: Waking up device
Try and add this to your AppEventLoop. It will make the device not go to
sleep.
static void AppEventLoop(void)
{
do
Is there a way to wake the device up from sleep at a given point in code? I
have always just used:
LocalID id = DmFindDatabase(0, AppName);
AlmSetAlarm(0, id, 0, TimGetSeconds(), 0);
ie. set an alarm to go off immediately. This has always worked great for me
in the past, but now I cannot use
Try and add this to your AppEventLoop. It will make the device not go to
sleep.
static void AppEventLoop(void)
{
do {
EvtResetAutoOffTimer();
}
}
Matt Revenaugh
- - - - - - - -
On 9/5/03 6:15 AM, in article [EMAIL