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

Retrieve supported focus commands when opening the port #138

Merged

Conversation

HomerSp
Copy link

@HomerSp HomerSp commented Nov 25, 2020

As I talked about in PR#132, this moves the retrieving of the supported focus commands to the Focus open code and make parts of the code use the new isCommandSupported method. This makes it easier to understand and also removes some duplicated code.
Because of this change I also had to move the stty clocal spawning to the port open method, to make sure it happens before running any commands on the port. This code is supposed to make the OSX connection more stable, so it should work the same way as before. I haven't tested it on OSX though as I only have access to Linux.

Do let me know if this makes sense, or if some parts need to be changed!

…lash and App to use this.

Signed-off-by: Mathias Tillman <master.homer@gmail.com>
@AlexDygma AlexDygma self-requested a review November 25, 2020 15:12
@AlexDygma AlexDygma added this to the 0.2.5 milestone Nov 25, 2020
@AlexDygma
Copy link
Member

Great!

This was the correct approach.

This way the supported commands are part of the focus library and it's maintenance is done where it should.

@AlexDygma AlexDygma merged commit 7d754bf into Dygmalab:development Nov 25, 2020
Copy link
Member

@AlexDygma AlexDygma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All changes tested

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.

None yet

2 participants