mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 02:20:48 +00:00
Merge "Don't trigger watchdog when power button is held down"
This commit is contained in:
@@ -93,6 +93,12 @@ static void wait_for_power_off(void)
|
||||
TASK_EVENT_TIMER))
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Holding down the power button causes this loop to spin
|
||||
* endlessly, triggering the watchdog. So add a wait here.
|
||||
*/
|
||||
task_wait_event(-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user