File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/chargepoint/smartcharging Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,8 @@ bool SmartChargingManager::getSetpoint(unsigned int connector_i
110110 }
111111 else
112112 {
113- charge_point_setpoint = period->limit / m_stack_config.operatingVoltage ();
113+ charge_point_setpoint =
114+ period->limit / (static_cast <float >(charge_point_number_phases) * m_stack_config.operatingVoltage ());
114115 }
115116 break ;
116117 }
@@ -131,7 +132,7 @@ bool SmartChargingManager::getSetpoint(unsigned int connector_i
131132 }
132133 if (connector_setpoint.isSet () && (connector_setpoint_unit == ChargingRateUnitType::W))
133134 {
134- connector_setpoint /= m_stack_config.operatingVoltage ();
135+ connector_setpoint /= ( static_cast < float >(connector_number_phases) * m_stack_config.operatingVoltage () );
135136 }
136137
137138 // Connector setpoint cannot be greater than charge point setpoint
You can’t perform that action at this time.
0 commit comments