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

My first set of patches #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

scotty1024
Copy link

The code for trying to find US vendor ID's didn't work, couldn't find USBInterface. So I used a path matcher method instead. This seems to be the more standard way of matching for USB serial devices as the vendor code's all tend to be generic anyway.

Fixed several concurrency problems, you must set state BEFORE initiating something that affects that state asynchronously eg set the call back then call the thing that will call the call back when it's done.

The delegate for the serial framework wasn't being set in the right place so none of the call backs were working to trigger the state changes as responses came back.

Cleaned up the initialize code to be able to handle getting "wait", "e1" and "B004" messages. These needed either the M115 to be re-sent or a "Q" and the M115 to be resent. Ugly for now but I wanted to see the head move on the printer. And move it did. Now working on how you slice for this thing and have it stick.

… use a path matcher method instead. This seems to be the more standard way of matching for USB serial devices as the vendor code's all tend to be generic anyway.

Fixed several concurrency problems, you must set state BEFORE initiating something that affects that state asynchronously.
The delegate for the serial framework wasn't being set in the right place so none of the call backs were working to trigger the state changes as responses came back.
Cleaned up the initialize code to be able to handle getting "wait", "e1" and "B004" messages. These needed either the M115 to be re-sent or a "Q" and the M115 to be resent. Ugly for now but I wanted to see the head move on the printer. And move it did. Now working on how you slice for this thing and have it stick.
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.

1 participant