From d1db0a633598f770276873fca3aae6bb9efc5dbe Mon Sep 17 00:00:00 2001 From: sterne-jaeger <37261405+sterne-jaeger@users.noreply.github.com> Date: Wed, 27 Sep 2023 06:30:56 +0200 Subject: [PATCH] Bug fix making both focusers visible (#1941) Co-authored-by: Wolfgang Reissenberger --- drivers/focuser/focuslynx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/focuser/focuslynx.cpp b/drivers/focuser/focuslynx.cpp index 28c1089e19..5612beb4ca 100644 --- a/drivers/focuser/focuslynx.cpp +++ b/drivers/focuser/focuslynx.cpp @@ -48,6 +48,8 @@ FocusLynxF1::FocusLynxF1(const char *target) * F1 or F2 to set the target of the created instance */ setFocusTarget(target); + // set the focuser name to a fixed value to ensure that both focusers are visible + setDeviceName(FocusLynxF1::getDefaultName()); // Both communication available, Serial and network (tcp/ip) setSupportedConnections(CONNECTION_SERIAL | CONNECTION_TCP); @@ -752,6 +754,8 @@ void FocusLynxF1::setDebug(bool enable) FocusLynxF2::FocusLynxF2(const char *target) { setFocusTarget(target); + // set the focuser name to a fixed value to ensure that both focusers are visible + setDeviceName(FocusLynxF2::getDefaultName()); // The second focuser has no direct communication with the hub setSupportedConnections(CONNECTION_NONE);