fix charger state file path

This commit is contained in:
nephros 2023-03-06 20:04:54 +01:00
parent adf154db23
commit 1fd7adbb96
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {