Skip to content

Commit

Permalink
smart_charging: Add string conversions for new enum variants
Browse files Browse the repository at this point in the history
These were forgotten in prior commits.

Signed-off-by: Christopher Davis <[email protected]>
  • Loading branch information
christopher-davis-afs committed Apr 26, 2024
1 parent 72c9fa8 commit e383c62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ocpp/v201/smart_charging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ std::string profile_validation_result_to_string(ProfileValidationResultEnum e) {
return "ChargingStationMaxProfileEvseIdGreaterThanZero";
case ProfileValidationResultEnum::DuplicateTxDefaultProfileFound:
return "DuplicateTxDefaultProfileFound";
case ProfileValidationResultEnum::DuplicateProfileValidityPeriod:
return "DuplicateProfileValidityPeriod";
}

throw std::out_of_range("No known string conversion for provided enum of type ProfileValidationResultEnum");
Expand Down

0 comments on commit e383c62

Please sign in to comment.