Request diag on wokeup from DeviceController
This commit is contained in:
parent
6312d133db
commit
d868c15359
@ -948,7 +948,13 @@ int ATBDeviceControllerPlugin::init_sc_dbus()
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ATBDeviceControllerPlugin::onWokeUp(uchar source)
|
||||||
|
{
|
||||||
|
if (source == 0x01) {
|
||||||
|
// woke up from device controller
|
||||||
|
this->diag->diagRequest();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/************************************************************************************************
|
/************************************************************************************************
|
||||||
|
@ -153,6 +153,8 @@ private slots:
|
|||||||
|
|
||||||
// measurement values
|
// measurement values
|
||||||
void onNewVoltage(uint32_t voltage);
|
void onNewVoltage(uint32_t voltage);
|
||||||
|
|
||||||
|
void onWokeUp(uchar source);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ATBDEVICECONTROLLERPLUGIN_H
|
#endif // ATBDEVICECONTROLLERPLUGIN_H
|
||||||
|
Loading…
Reference in New Issue
Block a user