From: Jérôme Benoit Date: Sun, 15 Mar 2026 20:24:39 +0000 (+0100) Subject: style(ocpp20): condense B09.FR.31 comment to single line per codebase convention X-Git-Tag: ocpp-server@v3.1.0~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=239142449447954d060cd47d7efd60877882a77e;p=e-mobility-charging-stations-simulator.git style(ocpp20): condense B09.FR.31 comment to single line per codebase convention --- diff --git a/src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts b/src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts index c30e1e39..e0c2046d 100644 --- a/src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts +++ b/src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts @@ -2199,8 +2199,7 @@ export class OCPP20IncomingRequestService extends OCPPIncomingRequestService { ]) const allowDowngrade = allowDowngradeResults[0]?.attributeValue?.toLowerCase() === 'true' - // B09.FR.31 (errata 2025-09 §2.12): Allow downgrade when AllowSecurityProfileDowngrade=true - // but NEVER allow downgrade to profile 1 + // B09.FR.31 (errata 2025-09 §2.12): Allow downgrade except to profile 1 when enabled if (!allowDowngrade || newSecurityProfile <= 1) { logger.warn( `${chargingStation.logPrefix()} ${moduleName}.handleRequestSetNetworkProfile: Rejected security profile downgrade: ${newSecurityProfile.toString()} < ${currentSecurityProfile.toString()}`