mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 15:07:31 -06:00
FIX: the n value is not correct when set pa cali value
If it is manual, set it to 0, if it is automatic, use the calibrated value Change-Id: I7c8737366e0ec0c6c2c17a7ad905cfb34e236fd8 (cherry picked from commit b235b0c8b79b1baf6a393ccfea236e1e650dcb7d) (cherry picked from commit 298f7b6b9349fdf7fe7f9092e3012188d27b9bf2)
This commit is contained in:
parent
4eb1edea13
commit
cefd9876fc
6 changed files with 12 additions and 10 deletions
|
@ -265,7 +265,7 @@ bool CalibUtils::get_PA_calib_info(PACalibResult & pa_calib_info) {
|
|||
return false;
|
||||
}
|
||||
|
||||
void CalibUtils::set_PA_calib_result(const std::vector<PACalibResult>& pa_calib_values)
|
||||
void CalibUtils::set_PA_calib_result(const std::vector<PACalibResult> &pa_calib_values, bool is_auto_cali)
|
||||
{
|
||||
DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager();
|
||||
if (!dev)
|
||||
|
@ -275,7 +275,7 @@ void CalibUtils::set_PA_calib_result(const std::vector<PACalibResult>& pa_calib_
|
|||
if (obj_ == nullptr)
|
||||
return;
|
||||
|
||||
obj_->command_set_pa_calibration(pa_calib_values);
|
||||
obj_->command_set_pa_calibration(pa_calib_values, is_auto_cali);
|
||||
}
|
||||
|
||||
void CalibUtils::select_PA_calib_result(const PACalibIndexInfo& pa_calib_info)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue