Browse Source

update

master
zhaohe 1 year ago
parent
commit
3b4d954de6
  1. 14
      components/water_cooling_temperature_control_module/water_cooling_temperature_control_module.cpp

14
components/water_cooling_temperature_control_module/water_cooling_temperature_control_module.cpp

@ -149,7 +149,7 @@ void WaterCoolingTemperatureControlModule::workloop() {
fan_start(m_cfg.fanlevel); fan_start(m_cfg.fanlevel);
int32_t i = 0; int32_t i = 0;
uint32_t startticket = zos_get_tick(); uint32_t startticket = zos_get_tick();
#if 0
#if 1
while (!m_thread.getExitFlag()) { while (!m_thread.getExitFlag()) {
if (zos_haspassedms(startticket) > 1000) { if (zos_haspassedms(startticket) > 1000) {
if (checkdevice() != 0) { if (checkdevice() != 0) {
@ -180,15 +180,15 @@ void WaterCoolingTemperatureControlModule::workloop() {
} }
} }
#endif #endif
while (!m_thread.getExitFlag()) {
m_thread.sleep(10);
// while (!m_thread.getExitFlag()) {
// m_thread.sleep(10);
float val = read_pid_temperature();
// float val = read_pid_temperature();
ZLOGI(TAG, "temperature %f", val);
// }
// ZLOGI(TAG, "temperature %f", val);
// // }
}
// }
pump_stop(); pump_stop();
fan_stop(); fan_stop();

Loading…
Cancel
Save