Skip to content

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

@crappier

Description

@crappier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    OCPP2.0.1bugSomething isn't workingsmart chargingOCPP 2.0.1 Smart Charging Certfication Profile

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions