Browse Source

update

storage-in-realtime
zhaohe 1 year ago
parent
commit
9343a9da8a
  1. 1
      README.md
  2. 4
      src/service/disinfection_printer_service.cpp

1
README.md

@ -9,7 +9,6 @@
```
./app.out 正常启动
./app.out --test_mode //测试模式启动
开始消毒

4
src/service/disinfection_printer_service.cpp

@ -79,12 +79,12 @@ void DisinfectionPrinterService::printTask(shared_ptr<DisinfectionPrinterTask> t
} else if (now_state == kstate_finished) {
dio->printerPrintf(fmt::format("结束...\n"));
}
dio->printerPrintf(fmt::format("{}ppm {}%RS {}%RH {:.2f}Log\n", ss->min_h2o2, ss->max_saturation, ss->max_humid, ss->dloglevel));
dio->printerPrintf(fmt::format("{}ppm {}%RS {}%RH {}Log\n", ss->min_h2o2, ss->max_saturation, ss->max_humid, (int)ss->dloglevel));
state = now_state;
} else {
if (now_state == kstate_disinfection) {
dio->printerPrintf(fmt::format("{}\n", format_zsystem_tp(ss->time)));
dio->printerPrintf(fmt::format("{}ppm {}%RS {}%RH {}Log\n", ss->min_h2o2, ss->max_saturation, ss->max_humid, ss->dloglevel));
dio->printerPrintf(fmt::format("{}ppm {}%RS {}%RH {}Log\n", ss->min_h2o2, ss->max_saturation, ss->max_humid, (int)ss->dloglevel));
this_thread::sleep_for(chrono::milliseconds(200));
}
}

Loading…
Cancel
Save