This commit is contained in:
vsey 2024-04-30 16:09:37 +02:00 committed by GitHub
parent 924c3f3a72
commit 14b388521d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -725,7 +725,7 @@ namespace Cpu {
if (fs::exists(bat_dir / "power_now")) {
new_bat.power_now = bat_dir / "power_now";
}
else if ((fs::exists(bat_dir / "current_now")) and (fs::exists(bat_dir / "current_now"))) {
else if ((fs::exists(bat_dir / "current_now")) and (fs::exists(bat_dir / "voltage_now"))) {
new_bat.current_now = bat_dir / "current_now";
new_bat.voltage_now = bat_dir / "voltage_now";
}