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:
Abhay Singh Gill
2025-08-14 21:01:31 +05:30
committed by hiroshi
parent 4388023851
commit c4f3a08563

View File

@@ -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;