Browse Source

1、改为加热

master
王梦远 1 month ago
parent
commit
e5ff6c4195
  1. 2
      src/main/java/com/iflytop/sgs/app/cmd/control/AnnealStartCommand.java

2
src/main/java/com/iflytop/sgs/app/cmd/control/AnnealStartCommand.java

@ -43,7 +43,7 @@ public class AnnealStartCommand extends BaseCommandHandler {
heatModuleService.fanClose(cmdDTO.getCommandId(), cmdDTO.getCommand(), heatModuleCode);//关闭风扇
deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode).setFanOpen(false);//同步状态
heatModuleService.heatRodOpen(cmdDTO.getCommandId(), cmdDTO.getCommand(), heatModuleCode, targetTemperature);//开启加热
deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode).setHeatingType(HeatingType.annealing);//状态修改为退火
deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode).setHeatingType(HeatingType.heating);//状态修改为加热
heatModuleState.setTargetTemperature(targetTemperature);//将退火温度设定为目标温度
});

Loading…
Cancel
Save