1
0
Fork 0
forked from len0rd/rockbox

Improved handling of the ONKEY1S interrupt. Off for the remote must be explicitly mapped now.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10932 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2006-09-12 14:20:29 +00:00
parent bc0943e922
commit 3bee89ed44
2 changed files with 36 additions and 15 deletions

View file

@ -59,6 +59,10 @@
#include <time.h>
#endif
#ifdef IAUDIO_X5
extern void pcf50606_reset_timeout(void);
#endif
/*
* Define DEBUG_FILE to create a csv (spreadsheet) with battery information
* in it (one sample per minute). This is only for very low level debug.
@ -1010,6 +1014,13 @@ void sys_poweroff(void)
void cancel_shutdown(void)
{
logf("sys_cancel_shutdown()");
#ifdef IAUDIO_X5
/* TODO: Move some things to target/ tree */
if (shutdown_timeout)
pcf50606_reset_timeout();
#endif
shutdown_timeout = 0;
}