|
|
@ -17,7 +17,7 @@ string DisinfectionCtrlService::getSetting(SettingId sid) { |
|
|
|
// 2. 从 系统配置 中进行查找
|
|
|
|
// m_realtimeCfg.find
|
|
|
|
if (sid == SettingId::loglevel) { |
|
|
|
return fmt::format("{:.2f}", m_tlog); |
|
|
|
return fmt::format("{}", m_tlog); |
|
|
|
} |
|
|
|
auto value = m_realtimeCfg.find(sid); |
|
|
|
if (value != m_realtimeCfg.end()) { |
|
|
@ -455,10 +455,9 @@ void DisinfectionCtrlService::processStatePreheat(DisinfectionEvent* event) { |
|
|
|
tryLogState(true); |
|
|
|
|
|
|
|
// dics->Blower_ctrl(90);
|
|
|
|
// usleep(1000 * 1000);
|
|
|
|
// usleep(1000 * 1000)
|
|
|
|
dics->Heater_ctrl(100); |
|
|
|
s_remaintime = getSettingAsInt(SettingId::pre_heat_time_s); |
|
|
|
|
|
|
|
} else if (event->event == kevent_exit_state) { |
|
|
|
// dics->Blower_ctrl(0);
|
|
|
|
// usleep(1000 * 1000);
|
|
|
|