Hi All,
Is there a way to detect when the system goes to suspend/idle?
I've been playing around with the GPSDriverDemo code.
I have a problem where if I press the buttom that turns off the screen and sends the system to suspend, the timer throws an error "Error getting Device Status", "4319".
I'm guessing that the suspend has caused the GPS driver to shutdown, But the timer is still executing and is calling the GetDeviceData function, which in turn causes this error.
Is there a way I can stop this?
Either by detecting that the system is suspending or that the driver has turned off?
Is there a way to detect when the system goes to suspend/idle?
I've been playing around with the GPSDriverDemo code.
I have a problem where if I press the buttom that turns off the screen and sends the system to suspend, the timer throws an error "Error getting Device Status", "4319".
I'm guessing that the suspend has caused the GPS driver to shutdown, But the timer is still executing and is calling the GetDeviceData function, which in turn causes this error.
Is there a way I can stop this?
Either by detecting that the system is suspending or that the driver has turned off?