-
Notifications
You must be signed in to change notification settings - Fork 8
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
Blink1 mk3 doesn't seem to be able to open properly #7
Comments
Okay. Marking as closed; mk3 handles reopening differently, but it's my fault. One must explicitly Close() before it can be found with OpenNextDevice(). |
Attempting to write to a mk3 fails for unclear reasons. |
package main import ( func main() { Works fine on a mk2, running on a mk3 gives: panic: Unable to write to blink(1) goroutine 1 [running]: |
Could the problem be that at line: |
I believe I have found the problem. I have submitted PR #8 to address it. |
@kazrakcom yep, @todbot's patch works. |
Attempting to open a mk3 seems to fail with "all devices busy".
Tossing some logging into OpenNextDevice, it appears that openDevices[dev.Device] is not nil even for a freshly-inserted mk3. I see "&{0xc00009b3e0 100ms {0 0 0 0 0s 10ms}}" as the value there.
I'm investigating further, but logging this here for reference.
The text was updated successfully, but these errors were encountered: