Skip to content

Commit 8432ed3

Browse files
authored
fixed endTansaction method for connectors other than 1
1 parent c1805f5 commit 8432ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MicroOcpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ bool endTransaction(const char *idTag, const char *reason, unsigned int connecto
380380
bool res = false;
381381
if (isTransactionActive(connectorId) && getTransactionIdTag(connectorId)) {
382382
//end transaction now if either idTag is nullptr (i.e. force stop) or the idTag matches beginTransaction
383-
if (!idTag || !strcmp(idTag, getTransactionIdTag())) {
383+
if (!idTag || !strcmp(idTag, getTransactionIdTag(connectorId))) {
384384
res = endTransaction_authorized(idTag, reason, connectorId);
385385
} else {
386386
MO_DBG_INFO("endTransaction: idTag doesn't match");

0 commit comments

Comments
 (0)