Skip to content

Commit

Permalink
🩹Fix the patch to use the correct field name
Browse files Browse the repository at this point in the history
After Louis fixed it in his MaEVe repo
This fixes US-JOET#4 (comment)
  • Loading branch information
shankari committed Jun 13, 2024
1 parent a410d23 commit 9eaea42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager/libocpp.patch
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ diff -r -uw libocpp_unmod/lib/ocpp/v201/messages/SetChargingProfile.cpp libocpp/
- k.chargingProfile = j.at("chargingProfile");
+ EVLOG_error << "In the message class, parsing from JSON: " << j;
+ k.evseId = j.value("evseId", 1);
+ k.chargingProfile = j.value("chargingProfile", j.at("ChargingProfileType"));
+ k.chargingProfile = j.value("chargingProfile", j.at("ChargingProfile"));

// the optional parts of the message
if (j.contains("customData")) {

0 comments on commit 9eaea42

Please sign in to comment.