dCArun: use DigitalOutputAbstraction

This commit is contained in:
Siegfried Siegert 2024-11-14 14:03:13 +01:00
parent 94a95eceb5
commit 0ea9ac9af3
Signed by untrusted user: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03
2 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#include "CArun.h"
#include "datei.h"
#include "CCWakelineAbstraction.h"
#include "DigitalOutputAbstraction.h"
CArun::CArun(QObject *parent)
@ -20,7 +20,10 @@ CArun::CArun(QObject *parent)
this->timerChainCtrl->start();
this->ccWakelineAbstraction = new CCWakelineAbstraction(this->HWaccess, this);
this->digitalOutputAbstraction = new DigitalOutputAbstraction(this->HWaccess, this);
this->digitalOutputAbstraction->addCCWake("/sys/class/leds/wakeupctrl_cc/brightness");
this->digitalOutputAbstraction->addCCPower("/run/powerctrl_cc");
this->digitalOutputAbstraction->addCCModem("/run/powerctrl_modem");
}

View File

@ -22,7 +22,7 @@ enum class SETUP_STEP {
};
class CCWakelineAbstraction;
class DigitalOutputAbstraction;
class CArun : public QObject
{
@ -45,7 +45,7 @@ private:
void openSerialPort();
CCWakelineAbstraction* ccWakelineAbstraction;
DigitalOutputAbstraction* digitalOutputAbstraction;
signals: