PSP: fixed invisible bug in power callback

svn-id: r49756
This commit is contained in:
Yotam Barnoy 2010-06-15 10:36:53 +00:00
parent 6903fc7a07
commit 0fe65d3e5f

View File

@ -110,12 +110,13 @@ int exit_callback(void) {
}
/* Function for handling suspend/resume */
void power_callback(int , int powerinfo) {
int power_callback(int , int powerinfo, void *) {
if (powerinfo & PSP_POWER_CB_POWER_SWITCH || powerinfo & PSP_POWER_CB_SUSPENDING) {
PowerMan.suspend();
} else if (powerinfo & PSP_POWER_CB_RESUME_COMPLETE) {
PowerMan.resume();
}
return 0;
}
/* Callback thread */