We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d64f056 + 4d35fc9 commit 09146f6Copy full SHA for 09146f6
src/chargepoint/smartcharging/SmartChargingManager.cpp
@@ -241,7 +241,7 @@ bool SmartChargingManager::handleMessage(const ocpp::messages::SetChargingProfil
241
if (request.csChargingProfiles.stackLevel <= m_ocpp_config.chargeProfileMaxStackLevel())
242
{
243
// Check schedule
244
- if (request.csChargingProfiles.chargingSchedule.chargingSchedulePeriod.size() <= m_ocpp_config.chargeProfileMaxStackLevel())
+ if (request.csChargingProfiles.chargingSchedule.chargingSchedulePeriod.size() <= m_ocpp_config.chargingScheduleMaxPeriods())
245
246
// Check charging rate unit
247
ChargingRateUnitType unit = request.csChargingProfiles.chargingSchedule.chargingRateUnit;
0 commit comments