Browse Source

fix:手动模式不做散热、加热判断了

master
白凤吉 2 months ago
parent
commit
05fc75f96a
  1. 4
      src/main/java/com/iflytop/gd/app/command/control/HeatStartCommand.java

4
src/main/java/com/iflytop/gd/app/command/control/HeatStartCommand.java

@ -44,10 +44,6 @@ public class HeatStartCommand extends BaseCommandHandler {
throw new AppException(ResultCode.CRAFT_RUNNING); throw new AppException(ResultCode.CRAFT_RUNNING);
} }
return runAsync(() -> { return runAsync(() -> {
if( deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode).isFanOpen()){
heatModuleService.fanClose(heatModuleCode);//加热前尝试关闭风扇
deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode).setFanOpen(false);
}
heatModuleService.heatRodOpen(cmdDTO.getCommandId(), cmdDTO.getCommand(), heatModuleCode, temperature); heatModuleService.heatRodOpen(cmdDTO.getCommandId(), cmdDTO.getCommand(), heatModuleCode, temperature);
deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode).setTargetTime(time); deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode).setTargetTime(time);
deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode).setHeatTemperature(temperature); deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode).setHeatTemperature(temperature);

Loading…
Cancel
Save