]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ocpp20): remove redundant lastFirmwareStatus from per-station state
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 16 Mar 2026 13:09:55 +0000 (14:09 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 16 Mar 2026 13:09:55 +0000 (14:09 +0100)
commit07cee73bb16e3a0a7096081b36fa780df62ece2b
treead103877612adbd34984cdd09297fa70b073e10d
parent19ab6a48a0203485185f8bdfe1a11012d9a72160
refactor(ocpp20): remove redundant lastFirmwareStatus from per-station state

lastFirmwareStatus in the WeakMap was a duplicate of
stationInfo.firmwareStatus (now written by sendFirmwareStatusNotification).

TriggerMessage now uses hasFirmwareUpdateInProgress() to determine
whether to send Idle or the current intermediate state, which also
fixes a bug where failure end states (DownloadFailed, InstallationFailed,
etc.) were returned instead of Idle.
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts