Pong: charging-control: Use battery tzn fallback for USB charging
The device tends to heat up a bit with usb fallback Signed-off-by: Abhay Singh Gill <abhaygill017@gmail.com>
This commit is contained in:
committed by
hiroshi
parent
4388023851
commit
c4f3a08563
@@ -124,7 +124,7 @@ int ChargeStatusListener::get_charge_temp() {
|
||||
temp = stoi(read_line(path));
|
||||
if (temp > 0) return temp;
|
||||
}
|
||||
tzn = get_tzn("usb");
|
||||
tzn = get_tzn("battery");
|
||||
snprintf(path, sizeof(path), "%sthermal_zone%d/temp", THERMAL_SYSFS, tzn);
|
||||
temp = stoi(read_line(path));
|
||||
return temp;
|
||||
|
||||
Reference in New Issue
Block a user