Request diag on wokeup from DeviceController

This commit is contained in:
Siegfried Siegert 2023-07-25 12:56:15 +02:00
parent 6312d133db
commit d868c15359
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03
2 changed files with 9 additions and 1 deletions

View File

@ -948,7 +948,13 @@ int ATBDeviceControllerPlugin::init_sc_dbus()
return 1;
}
void ATBDeviceControllerPlugin::onWokeUp(uchar source)
{
if (source == 0x01) {
// woke up from device controller
this->diag->diagRequest();
}
}
/************************************************************************************************

View File

@ -153,6 +153,8 @@ private slots:
// measurement values
void onNewVoltage(uint32_t voltage);
void onWokeUp(uchar source);
};
#endif // ATBDEVICECONTROLLERPLUGIN_H