mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
FIX: Modify bounds checking for manual calibration
jira: none Change-Id: Iba816fa7a81eb4ecfb1ab51c975cddfc4bce72cb (cherry picked from commit 97314db430bcafbc3133e43092f093abcc4d4739)
This commit is contained in:
@@ -61,7 +61,7 @@ std::map<int, TrayInfo> get_cached_selected_filament_for_multi_extruder(MachineO
|
|||||||
|
|
||||||
bool is_pa_params_valid(const Calib_Params& params)
|
bool is_pa_params_valid(const Calib_Params& params)
|
||||||
{
|
{
|
||||||
if (params.start <= MIN_PA_K_VALUE || params.end >= MAX_PA_K_VALUE || params.step < EPSILON || params.end < params.start + params.step) {
|
if (params.start < MIN_PA_K_VALUE || params.end > MAX_PA_K_VALUE || params.step < EPSILON || params.end < params.start + params.step) {
|
||||||
MessageDialog msg_dlg(nullptr,
|
MessageDialog msg_dlg(nullptr,
|
||||||
wxString::Format(_L("Please input valid values:\nStart value: >= %.1f\nEnd value: <= %.1f\nEnd value: > Start value\nValue step: >= %.3f"), MIN_PA_K_VALUE, MAX_PA_K_VALUE, MIN_PA_K_VALUE_STEP),
|
wxString::Format(_L("Please input valid values:\nStart value: >= %.1f\nEnd value: <= %.1f\nEnd value: > Start value\nValue step: >= %.3f"), MIN_PA_K_VALUE, MAX_PA_K_VALUE, MIN_PA_K_VALUE_STEP),
|
||||||
wxEmptyString, wxICON_WARNING | wxOK);
|
wxEmptyString, wxICON_WARNING | wxOK);
|
||||||
|
|||||||
Reference in New Issue
Block a user