We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baec7ed commit bb8b664Copy full SHA for bb8b664
src/evse.cpp
@@ -155,8 +155,8 @@ void Evse::presentNfcTag(const char *uid_cstr) {
155
if (context->getVersion().major == 2) {
156
if (auto txService = context->getModel().getTransactionService()) {
157
if (auto evse = txService->getEvse(connectorId)) {
158
- if (evse->getTransaction() && evse->getTransaction()->isAuthorized) {
159
- evse->endAuthorization(uid_cstr);
+ if (evse->getTransaction() && evse->getTransaction()->isAuthorizationActive) {
+ evse->endAuthorization(MicroOcpp::IdToken(uid_cstr, MicroOcpp::IdToken::Type::KeyCode));
160
} else {
161
evse->beginAuthorization(MicroOcpp::IdToken(uid_cstr, MicroOcpp::IdToken::Type::KeyCode));
162
}
0 commit comments