1
0
forked from me/IronOS

Dont need round down

This commit is contained in:
Ben V. Brown
2021-05-06 21:37:35 +10:00
parent 293c09cffa
commit e380f9c129

View File

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