Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix making both focusers visible #1941

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions drivers/focuser/focuslynx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down