|
|
@ -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)); |
|
|
|
} |
|
|
|
} |
|
|
|