[PineTab] add AC charger state file
This commit is contained in:
parent
6642c57692
commit
6f24ec2a04
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,8 @@ Battery::Battery(Settings* newSettings, Logger* newLogger, QObject* parent) : QO
|
||||||
filenames.clear();
|
filenames.clear();
|
||||||
filenames << "/sys/class/power_supply/usb/present"
|
filenames << "/sys/class/power_supply/usb/present"
|
||||||
<< "/sys/class/power_supply/dollar_cove_charger/present"
|
<< "/sys/class/power_supply/dollar_cove_charger/present"
|
||||||
<< "/sys/class/power_supply/axp20x-usb/present";
|
<< "/sys/class/power_supply/axp20x-usb/present"
|
||||||
|
<< "/sys/class/power_supply/axp20x-ac/present";
|
||||||
|
|
||||||
foreach(const QString& file, filenames) {
|
foreach(const QString& file, filenames) {
|
||||||
if(!chargerConnectedFile && QFile::exists(file)) {
|
if(!chargerConnectedFile && QFile::exists(file)) {
|
||||||
|
|
Loading…
Reference in a new issue