libstrat: fix compilation without pre-compiled header/without lto

This commit is contained in:
Michael Scire
2021-10-06 17:58:42 -07:00
parent 7ca83c9d3b
commit e8f1efd01b
37 changed files with 89 additions and 33 deletions

View File

@@ -97,7 +97,7 @@ namespace ams::powctl::driver::impl {
const auto *rule = this->GetSelectedRule();
AMS_ASSERT(rule != nullptr);
return IsInRange(0, rule->min_battery_done_current, rule->max_battery_done_current);
return IsInRange(current, rule->min_battery_done_current, rule->max_battery_done_current);
}
const ChargeParametersRule *GetSelectedRule() const {