diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/modbustcp/say/SaySwitchServiceImpl.java b/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/modbustcp/say/SaySwitchServiceImpl.java index 973325362..d72ab5ec7 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/modbustcp/say/SaySwitchServiceImpl.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/modbustcp/say/SaySwitchServiceImpl.java @@ -58,10 +58,10 @@ public class SaySwitchServiceImpl implements RealDeviceService { boolean r_db = RealDeviceConfig.getBitOf(deviceStatus, configVO.getR_db()); boolean r_fb = RealDeviceConfig.getBitOf(deviceStatus, configVO.getR_fb()); vrSwitch.apply(r_db, r_fb); - config.sync(r_db, r_fb); //以下操作实体设备的逻辑中,防止继电器长期接通的逻辑将定反操视为技能,共用3秒冷却,技能持续时间也是3秒 if (config.isEnd()) { //此判断既可视为操作是否冷却,也可视为持续时间是否耗尽 + config.sync(r_db, r_fb); release(deviceStatus, baseAddr, configVO, channel); //操作持续时间耗尽后断开所有继电器 if (vrSwitch.isTurning()) { switch (vrSwitch.getCommand()) {