Skip to content

Commit ab792f8

Browse files
fix logic error in handling charging profiles
The case `Recurring profiles must have a start schedule and a duration` wasn't treat as an error.
1 parent d442e7b commit ab792f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/chargepoint/smartcharging/SmartChargingManager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ bool SmartChargingManager::handleMessage(const ocpp::messages::SetChargingProfil
303303
}
304304
else
305305
{
306+
ret = false;
306307
error_message = "Recurring profiles must have a start schedule and a duration";
307308
}
308309
}

0 commit comments

Comments
 (0)