From: Sébastien Savalle <> Date: Fri, 15 Apr 2022 09:16:33 +0000 (+0200) Subject: Allow to send result message when station is in pending mode. X-Git-Tag: v1.1.57~1^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=37a48c48e25d4b4ef360ef0d0f5ce34ac3f4b91b;p=e-mobility-charging-stations-simulator.git Allow to send result message when station is in pending mode. --- 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;