mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-14 15:26:11 -06:00
FIX: Modify bounds checking for manual calibration
jira: none Change-Id: Iba816fa7a81eb4ecfb1ab51c975cddfc4bce72cb (cherry picked from commit 97314db430bcafbc3133e43092f093abcc4d4739)
This commit is contained in:
parent
c806aa05b7
commit
410549dc89
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
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,
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue