Skip to content

Commit

Permalink
Added new enum variants to the conversion function
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph <[email protected]>
  • Loading branch information
folkengine committed Apr 26, 2024
1 parent a1f76a2 commit bc38476
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ocpp/v201/smart_charging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ std::string profile_validation_result_to_string(ProfileValidationResultEnum e) {
return "Valid";
case ProfileValidationResultEnum::EvseDoesNotExist:
return "EvseDoesNotExist";
case ProfileValidationResultEnum::InvalidProfileType:
return "InvalidProfileType";
case ProfileValidationResultEnum::TxProfileMissingTransactionId:
return "TxProfileMissingTransactionId";
case ProfileValidationResultEnum::TxProfileEvseIdNotGreaterThanZero:
Expand All @@ -50,6 +52,10 @@ std::string profile_validation_result_to_string(ProfileValidationResultEnum e) {
return "ChargingSchedulePeriodUnsupportedNumberPhases";
case ProfileValidationResultEnum::ChargingSchedulePeriodExtraneousPhaseValues:
return "ChargingSchedulePeriodExtraneousPhaseValues";
case ProfileValidationResultEnum::ChargingStationMaxProfileCannotBeRelative:
return "ChargingStationMaxProfileCannotBeRelative";
case ProfileValidationResultEnum::ChargingStationMaxProfileEvseIdGreaterThanZero:
return "ChargingStationMaxProfileEvseIdGreaterThanZero";
case ProfileValidationResultEnum::DuplicateTxDefaultProfileFound:
return "DuplicateTxDefaultProfileFound";
}
Expand Down

0 comments on commit bc38476

Please sign in to comment.