-
Notifications
You must be signed in to change notification settings - Fork 15
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
--device is hardcoded for a specific playdate on Unix #24
Comments
I think #23 provides a work-around. I'll make the default work better in the future. |
Since the modem appears and disappears as the device is mounted as a disk, I don't think there is a way to make a good default. I think an environmental variable is the best we can do. |
I think a way to make it work would be to check for a modem with the correct prefix, if it exists use that. If it doesn't exist check for the PLAYDATE volume and eject it then search for the modem again. |
So long as there's some code to handle the no playdate plugged in at all case that seems good to me. |
Something like |
At least with lsusb 015, it only shows CDC ACM capability info, not the device path, at least not directly. Since other devices (like my keyboard) have the capability as well, that alone isn't enough to find the device. Here's how that section of the Playdate's information shows up:
However, I found that the kernel (or udev) creates a very useful symlink to the ttyACM device:
The pieces of the symlink name come from the manufacturer, product, and serial from lsusb, so we could probably reconstruct the exact name and therefore find the link, but I think it'd be fine to wildcard What do you think? I could write that for the Linux case. |
Worth a shot. I'm not sure when I'll have the time to do the Mac side of the work, but that's no reason not to make it better for Linux. |
This line is hardcoded for a specific playdate number so it won't work unless you're lucky enough to have that exact playdate.:
crank/src/main.rs
Line 370 in 6ac4323
The text was updated successfully, but these errors were encountered: