yeg
2026-09-09 f38ca8a9f8454ac2eebdc268c89efd0e436b3cf2
battery-device-bts/src/main/java/com/battery/device/bts/BtsStepDirectionResolver.java
@@ -12,6 +12,7 @@
    public Direction resolve(String stepType)
    {
        String type = stepType == null ? "" : stepType.trim().toLowerCase(Locale.ROOT);
        if ("rest".equals(type)) return Direction.REST;
        if (Set.of("cc", "cv", "cccv", "cp", "cr", "charge", "charging").contains(type)) return Direction.CHARGE;
        if (Set.of("dc", "dp", "dr", "dv", "cccd", "discharge", "discharging").contains(type)) return Direction.DISCHARGE;
        return Direction.UNKNOWN;