repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19eac63
)
Allow to send result message when station is in pending mode.
author
Sébastien Savalle
<>
Fri, 15 Apr 2022 09:16:33 +0000
(11:16 +0200)
committer
Sébastien Savalle
<>
Fri, 15 Apr 2022 09:16:33 +0000
(11:16 +0200)
src/charging-station/ocpp/OCPPRequestService.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/charging-station/ocpp/OCPPRequestService.ts
b/src/charging-station/ocpp/OCPPRequestService.ts
index 2813d39aad5c0ca89f4e6af9ffc31615182b4dfc..021e09f369edb855d5be7d161e512f073d3504a3 100644
(file)
--- 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;