Diag: call diagRequest() on wokeup from rtc
This commit is contained in:
		@@ -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();
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user