From 37a48c48e25d4b4ef360ef0d0f5ce34ac3f4b91b Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Savalle?= <> Date: Fri, 15 Apr 2022 11:16:33 +0200 Subject: [PATCH] Allow to send result message when station is in pending mode. --- src/charging-station/ocpp/OCPPRequestService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index 2813d39a..021e09f3 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -126,7 +126,8 @@ export default abstract class OCPPRequestService { (!this.chargingStation.getOcppStrictCompliance() && this.chargingStation.isInUnknownState()) || this.chargingStation.isInAcceptedState() || - (this.chargingStation.isInPendingState() && params.triggerMessage) + (this.chargingStation.isInPendingState() && + (params.triggerMessage || messageType === MessageType.CALL_RESULT_MESSAGE)) ) { // eslint-disable-next-line @typescript-eslint/no-this-alias const self = this; -- 2.34.1