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

Flip-flat: Allow handshake without ioctl on virtual serial connection #1987

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

jfwells
Copy link
Contributor

@jfwells jfwells commented Jan 2, 2024

… (revised)

If initial IOCTL call fails, try premptively pinging the flip-flat anyway, so that the handshake can succeed in the case of a virtual serial port (e.g. a pty with no IOCTL).

This shouldn't impact flip-flat driver users with 'real' or clone hardware, but will allow hardware implementations that use a virtual serial port (e.g. in my case, using stepper/relay hats via gpio on a rpi with a small python daemon)

… (revised)

If initial IOCTL call fails, try premptively pinging the flip-flat anyway,  so that the handshake can succeed in the case of a virtual serial port (e.g. a pty with no IOCTL).
@knro knro merged commit 93ef452 into indilib:master Jan 5, 2024
11 checks passed
@knro
Copy link
Contributor

knro commented Jan 5, 2024

Test and works fine on FlipFlat

@jfwells
Copy link
Contributor Author

jfwells commented Jan 5, 2024

thank you for testing!

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