[PineTab] add AC charger state file

This commit is contained in:
nephros 2023-02-23 11:16:23 +01:00
parent 6642c57692
commit 6f24ec2a04

View file

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