1
0
forked from me/IronOS
This commit is contained in:
Ben V. Brown
2021-05-06 19:49:07 +10:00
parent 7bca0280f9
commit 73f11499b6
3 changed files with 5 additions and 5 deletions

View File

@@ -92,7 +92,7 @@ bool PolicyEngine::pdbs_dpm_evaluate_capability(const union pd_msg *capabilities
bestIsPPS = false;
#ifdef MODEL_HAS_DCDC
// set limiter for wattage
powerSupplyWattageLimit = ((voltage_mv * current_a_x100) / 100 / 1000)-1;
powerSupplyWattageLimit = ((voltage_mv * current_a_x100) / 100 / 1000) - 1;
#endif
}
}
@@ -119,7 +119,7 @@ bool PolicyEngine::pdbs_dpm_evaluate_capability(const union pd_msg *capabilities
bestIsPPS = true;
#ifdef MODEL_HAS_DCDC
// set limiter for wattage
powerSupplyWattageLimit = ((ideal_voltage_mv * max_current) / 100 / 1000)-1;
powerSupplyWattageLimit = ((ideal_voltage_mv * max_current) / 100 / 1000) - 1;
#endif
}
}