From 7adc723451ffb06f28eff472b9bc3687710a5a53 Mon Sep 17 00:00:00 2001 From: Jasem Mutlaq Date: Sat, 23 Nov 2024 10:43:55 -0800 Subject: [PATCH] Update presets to use the maximum position --- indi-asi/asi_focuser.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/indi-asi/asi_focuser.cpp b/indi-asi/asi_focuser.cpp index fe0ea07a6..6a41f2f7d 100644 --- a/indi-asi/asi_focuser.cpp +++ b/indi-asi/asi_focuser.cpp @@ -168,6 +168,13 @@ bool ASIEAF::initProperties() FocusAbsPosN[0].value = 0; FocusAbsPosN[0].step = m_MaxSteps / 20.0; + PresetN[0].max = m_MaxSteps; + PresetN[0].step = m_MaxSteps / 20.0; + PresetN[1].max = m_MaxSteps; + PresetN[1].step = m_MaxSteps / 20.0; + PresetN[2].max = m_MaxSteps; + PresetN[2].step = m_MaxSteps / 20.0; + setDefaultPollingPeriod(500); addDebugControl();