From e380f9c129ff1e63c8e58eb352e18d6a9d9b4bae Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Thu, 6 May 2021 21:37:35 +1000 Subject: [PATCH] Dont need round down --- source/Core/Drivers/FUSB302/policy_engine_user.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Core/Drivers/FUSB302/policy_engine_user.cpp b/source/Core/Drivers/FUSB302/policy_engine_user.cpp index d86012c7..b97584aa 100644 --- a/source/Core/Drivers/FUSB302/policy_engine_user.cpp +++ b/source/Core/Drivers/FUSB302/policy_engine_user.cpp @@ -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); #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); #endif } }