From 9343a9da8ac65f8e8e635279dbcf88b1d70413f3 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 18 May 2024 18:03:57 +0800 Subject: [PATCH] update --- README.md | 1 - src/service/disinfection_printer_service.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7468624..d621a09 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,6 @@ ``` ./app.out 正常启动 -./app.out --test_mode //测试模式启动 开始消毒 diff --git a/src/service/disinfection_printer_service.cpp b/src/service/disinfection_printer_service.cpp index f12944b..e15e91b 100644 --- a/src/service/disinfection_printer_service.cpp +++ b/src/service/disinfection_printer_service.cpp @@ -79,12 +79,12 @@ void DisinfectionPrinterService::printTask(shared_ptr 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)); } }