Skip to content

Commit

Permalink
fix endTransaction params (fixes #202)
Browse files Browse the repository at this point in the history
  • Loading branch information
matth-x committed Oct 2, 2023
1 parent b0f416c commit cce3d81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/ESP/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void loop() {
//card matches -> user can stop Tx
Serial.println(F("[main] End transaction by RFID card"));

endTransaction();
endTransaction(idTag.c_str());
} else {
Serial.println(F("[main] Cannot end transaction by RFID card (different card?)"));
}
Expand Down
2 changes: 1 addition & 1 deletion src/MicroOcpp/Operations/Reset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void Reset::processReq(JsonObject payload) {
resetAccepted = true;
rService->initiateReset(isHard);
for (unsigned int cId = 0; cId < model.getNumConnectors(); cId++) {
model.getConnector(cId)->endTransaction(isHard ? "HardReset" : "SoftReset");
model.getConnector(cId)->endTransaction(nullptr, isHard ? "HardReset" : "SoftReset");
}
}
}
Expand Down

0 comments on commit cce3d81

Please sign in to comment.