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.
1 parent d64f056 commit 4d35fc9Copy full SHA for 4d35fc9
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