Adding comment removed from failed merge (6acb240c)

Change-Id: Iace4c8512c6a4a26d36b98a5a3144e6836db1904
This commit is contained in:
Ian Pedowitz 2015-10-12 19:01:00 -07:00
parent 1df084d39f
commit 585ab65c58
1 changed files with 3 additions and 0 deletions

View File

@ -600,6 +600,9 @@ void BatteryMonitor::init(struct healthd_config *hc) {
closedir(dir);
}
// This indicates that there is no charger driver registered.
// Typically the case for devices which do not have a battery and
// and are always plugged into AC mains.
if (!mChargerNames.size()) {
KLOG_ERROR(LOG_TAG, "No charger supplies found\n");
mBatteryFixedCapacity = ALWAYS_PLUGGED_CAPACITY;