Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SmartChargingHandler::validate_tx_default_profile has a problem with assignment expression #792

Open
crappier opened this issue Sep 13, 2024 · 0 comments
Labels
bug Something isn't working OCPP2.0.1 smart charging OCPP 2.0.1 Smart Charging Certfication Profile

Comments

@crappier
Copy link

OCPP Version

OCPP2.0.1

Describe the bug

libocpp/lib/ocpp/v201/smart_charging.cpp

Func in SmartChargingHandler::validate_tx_default_profile

auto profiles = evse_id == 0 ? get_evse_specific_tx_default_profiles() : get_station_wide_tx_default_profiles();

I think there may be a problem with this expression.
Replace with the following:
auto profiles = evse_id != 0 ...

To Reproduce

No response

Anything else?

No response

@Pietfried Pietfried added OCPP2.0.1 smart charging OCPP 2.0.1 Smart Charging Certfication Profile bug Something isn't working labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OCPP2.0.1 smart charging OCPP 2.0.1 Smart Charging Certfication Profile
Projects
None yet
Development

No branches or pull requests

2 participants