diff --git a/dCArun/CArun.cpp b/dCArun/CArun.cpp index 02b2558..19e8657 100644 --- a/dCArun/CArun.cpp +++ b/dCArun/CArun.cpp @@ -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"); } diff --git a/dCArun/CArun.h b/dCArun/CArun.h index 4be909e..402bcd8 100644 --- a/dCArun/CArun.h +++ b/dCArun/CArun.h @@ -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: