Skip to content

Commit bb8b664

Browse files
committed
flag RFID tags as KeyCode to make OCTT happy
1 parent baec7ed commit bb8b664

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/evse.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ void Evse::presentNfcTag(const char *uid_cstr) {
155155
if (context->getVersion().major == 2) {
156156
if (auto txService = context->getModel().getTransactionService()) {
157157
if (auto evse = txService->getEvse(connectorId)) {
158-
if (evse->getTransaction() && evse->getTransaction()->isAuthorized) {
159-
evse->endAuthorization(uid_cstr);
158+
if (evse->getTransaction() && evse->getTransaction()->isAuthorizationActive) {
159+
evse->endAuthorization(MicroOcpp::IdToken(uid_cstr, MicroOcpp::IdToken::Type::KeyCode));
160160
} else {
161161
evse->beginAuthorization(MicroOcpp::IdToken(uid_cstr, MicroOcpp::IdToken::Type::KeyCode));
162162
}

0 commit comments

Comments
 (0)