Skip to content

Conversation

GeoBaltz
Copy link
Contributor

@GeoBaltz GeoBaltz commented Jun 9, 2024

Fix the non-conformant handling of config parameters between rot_init and rot_open. Fixes general application use of this rotator, and eliminates any need for special-casing.

GeoBaltz added 2 commits June 9, 2024 15:41
…eeds to be done after rot_open"

This reverts commit 1557ad7.
Don't try to write config commands when port isn't open yet; queue
them and send after open.  Makes rotorez perform just like every other
device handler in Hamlib.
@mdblack98
Copy link
Contributor

That doesn't look like it will work. You are only saving the command and not the value.

@GeoBaltz
Copy link
Contributor Author

Why doesn't my email reply show up here????

The command is the value - upper/lower case => on/off.

@mdblack98
Copy link
Contributor

Turns our rotorez is not the only one that does this and it is much simpler to handle this in rotctl/rotctld with a 1-line change to add a rotor then to put this code in every backend. Plus you missed saving the value which is used for the command selection in the set_conf function. This does seem to be unique to rotor backends.

@mdblack98 mdblack98 closed this Jun 11, 2024
@GeoBaltz
Copy link
Contributor Author

GeoBaltz commented Jun 11, 2024 via email

@GeoBaltz
Copy link
Contributor Author

GeoBaltz commented Jun 11, 2024 via email

@mdblack98
Copy link
Contributor

mdblack98 commented Jun 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants