mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
FIX: add log for cali
Jira: XXXX Change-Id: I4ba755e4700122bd331f8d95ec4b1a09f4b7b5f9 (cherry picked from commit ce2786ffe53aec1a6df1a33e50ec07572da5ad44)
This commit is contained in:
parent
5010994d88
commit
abca2007ab
3 changed files with 44 additions and 11 deletions
|
@ -154,6 +154,7 @@ void CalibrationWizard::on_device_connected(MachineObject* obj)
|
|||
BOOST_LOG_TRIVIAL(info) << "on_device_connected - machine object status:"
|
||||
<< " dev_id = " << obj->dev_id
|
||||
<< ", print_type = " << obj->printer_type
|
||||
<< ", printer_status = " << obj->print_status
|
||||
<< ", cali_finished = " << obj->cali_finished
|
||||
<< ", cali_version = " << obj->cali_version
|
||||
<< ", cache_flow_ratio = " << obj->cache_flow_ratio
|
||||
|
|
|
@ -143,6 +143,29 @@ void CalibrationCaliPage::clear_last_job_status()
|
|||
|
||||
void CalibrationCaliPage::update(MachineObject* obj)
|
||||
{
|
||||
if (this->IsShown()) {
|
||||
if (obj) {
|
||||
if (obj->print_status != "RUNNING") {
|
||||
BOOST_LOG_TRIVIAL(info) << "on_show_cali_page - machine object status:"
|
||||
<< " dev_id = " << obj->dev_id
|
||||
<< ", print_type = " << obj->printer_type
|
||||
<< ", printer_status = " << obj->print_status
|
||||
<< ", is_connected = " << obj->is_connected()
|
||||
<< ", m_is_between_start_and_running = " << m_is_between_start_and_running
|
||||
<< ", cali_finished = " << obj->cali_finished
|
||||
<< ", cali_version = " << obj->cali_version
|
||||
<< ", cache_flow_ratio = " << obj->cache_flow_ratio
|
||||
<< ", sub_task_name = " << obj->subtask_name
|
||||
<< ", gcode_file_name = " << obj->m_gcode_file
|
||||
<< ", get_pa_calib_result" << obj->get_pa_calib_result
|
||||
<< ", get_flow_calib_result" << obj->get_flow_calib_result;
|
||||
}
|
||||
}
|
||||
else {
|
||||
BOOST_LOG_TRIVIAL(info) << "on_show_cali_page - machine object is nullptr";
|
||||
}
|
||||
}
|
||||
|
||||
static int get_result_count = 0;
|
||||
// enable calibration when finished
|
||||
bool enable_cali = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue