Compare commits
1 Commits
2.8.2
...
pu/integra
Author | SHA1 | Date | |
---|---|---|---|
2452499073
|
@@ -1909,8 +1909,17 @@ int ATBDeviceControllerPlugin::init_sc_dbus()
|
|||||||
|
|
||||||
void ATBDeviceControllerPlugin::onWokeUp(uchar source)
|
void ATBDeviceControllerPlugin::onWokeUp(uchar source)
|
||||||
{
|
{
|
||||||
if (source == 0x01 || source == 0xFE) {
|
/* PTU5 wakeup sources:
|
||||||
// woke up from device controller
|
* 0x01 - on wakeup from DeviceController
|
||||||
|
* 0x02 - on wakeup from WakeupButton
|
||||||
|
* 0x03 - on wakeup from ResetKey
|
||||||
|
* 0x04 - on wakeup from rtc
|
||||||
|
* 0xFE - signal emitted by timer (on mains powered machines)
|
||||||
|
* 0xFF - unknown wakeup source
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (source == 0x01 || source == 0x03 || source == 0xFE) {
|
||||||
|
// woke up from device controller, rtc or timer
|
||||||
hw->dc_autoRequest(true);
|
hw->dc_autoRequest(true);
|
||||||
this->diag->diagRequest();
|
this->diag->diagRequest();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user