diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index 1126967..f64572e 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -1909,8 +1909,17 @@ int ATBDeviceControllerPlugin::init_sc_dbus() void ATBDeviceControllerPlugin::onWokeUp(uchar source) { - if (source == 0x01 || source == 0xFE) { - // woke up from device controller + /* PTU5 wakeup sources: + * 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); this->diag->diagRequest(); }