Merge pull request #836 from vsey/Fix-Typo

This commit is contained in:
Jakob P. Liljenberg 2024-04-30 17:02:46 +02:00 committed by GitHub
commit 8c1a8ab4fa
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";
}