diff --git a/application/src/battery.cpp b/application/src/battery.cpp index 903c7c4..268d31e 100644 --- a/application/src/battery.cpp +++ b/application/src/battery.cpp @@ -90,7 +90,7 @@ Battery::Battery(Settings* newSettings, Logger* newLogger, QObject* parent) : QO // Number: 0 or 1 const QStringList acPresentFiles = { "/sys/class/power_supply/ac/present", - "/sys/class/power_supply/axp20x-ac/present" + "/sys/class/power_supply/axp813-ac/present" }; foreach(const QString& file, acPresentFiles) { diff --git a/service/src/battery.cpp b/service/src/battery.cpp index 21db913..e6228e1 100644 --- a/service/src/battery.cpp +++ b/service/src/battery.cpp @@ -142,7 +142,7 @@ Battery::Battery(Logger* newLogger, bool loglevelSet, QCoreApplication *app, QOb // Charger connected, bool (number): 0 or 1 const QStringList acFiles = { "/sys/class/power_supply/ac/present", - "/sys/class/power_supply/axp20x-ac/present" + "/sys/class/power_supply/axp813-ac/present" }; foreach(const QString& file, acFiles) {