tomasf / microprint

Printing software for M3D Micro for OS X
MIT License
26 stars 5 forks source link

My first set of patches #1

Open scotty1024 opened 9 years ago

scotty1024 commented 9 years ago

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.