diff --git a/src/lib/Misc.h b/src/lib/Misc.h index a2822c75..2ef9e9ca 100644 --- a/src/lib/Misc.h +++ b/src/lib/Misc.h @@ -67,7 +67,7 @@ bool validateAxisSettings(int axisNum, bool altAz, volatile axisSettings &a) { axisNum--; if (a.stepsPerMeasure < StepsLimitL[axisNum] || a.stepsPerMeasure > StepsLimitH[axisNum]) { DF("ERR, validateAxisSettings(): Axis"); D(axisNum+1); DF(" bad stepsPerMeasure="); DL(a.stepsPerMeasure); return false; } if (a.microsteps != OFF && (a.microsteps < 1 || a.microsteps > 256)) { DF("ERR, validateAxisSettings(): Axis"); D(axisNum+1); DF(" bad microsteps="); DL(a.microsteps); return false; } - if (a.IRUN != OFF && (a.IRUN < 0 || a.IRUN > IrunLimitH[axisNum])) { DF("ERR, validateAxisSettings(): Axis"); D(axisNum+1); DF(" bad IRUN="); DL(a.IRUN); return false; } + if (a.IRUN != OFF && a.IRUN != 2500 && (a.IRUN < 0 || a.IRUN > IrunLimitH[axisNum])) { DF("ERR, validateAxisSettings(): Axis"); D(axisNum+1); DF(" bad IRUN="); DL(a.IRUN); return false; } if (a.reverse != OFF && a.reverse != ON) { DF("ERR, validateAxisSettings(): Axis"); D(axisNum+1); DF(" bad reverse="); DL(a.reverse); return false; } if (a.min < MinLimitL[axisNum] || a.min > MinLimitH[axisNum]) { DF("ERR, validateAxisSettings(): Axis"); D(axisNum+1); DF(" bad min="); DL(a.min); return false; } if (a.max < MaxLimitL[axisNum] || a.max > MaxLimitH[axisNum]) { DF("ERR, validateAxisSettings(): Axis"); D(axisNum+1); DF(" bad max="); DL(a.max); return false; }