]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
style(ocpp20): condense B09.FR.31 comment to single line per codebase convention
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 15 Mar 2026 20:24:39 +0000 (21:24 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 15 Mar 2026 20:24:39 +0000 (21:24 +0100)
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts

index c30e1e394f4d704801e68eeebe7e4237a3f37136..e0c2046dd7b953cfd1caa9b87dd8ad837e34a5c6 100644 (file)
@@ -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()}`