fix charger state file path
This commit is contained in:
parent
adf154db23
commit
1fd7adbb96
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue