-
Notifications
You must be signed in to change notification settings - Fork 17
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
Don't work when MIDI Device re-plug #16
Comments
I made a hackjob fix here The original does not do any cleanup when the device is unplugged - either in the sketch or the ESP USB Host library. I added a callback so usbhelp.hpp can call a function in the main sketch when the device is "gone". I'm sure it is pretty janky, would love to hear some improvements. I know next to nothing about USB. Cheers. |
use
|
Can explain how? I tried it and I know of a skilled embedded engineer that also tried it. When I flashed an ESP32-S3 dev kit clone with that in verbose mode, it simply flashes it and the transmit LED turns on, but no serial monitor messages sadly. Recommended solutions? Thanks in advance! |
@fastfourier666 You did a great job thank you for sharing ! |
This is a great project, I can run it and all the functions are normal
When the MIDI Device is reinserted, it cannot be automatically recognized and needs to be restarted to function properly again
I see that the new device is defined in the function in usbhelp.hpp as void _cliend_event_callback (const usbhost_cliend_event_msg_t * event_msg, void * arg)
I guess this function was not called during the second insertion But my ability is limited and I can't change this code well Who can help fix this issue of reinsertion and rediscovery?
Thank you very much
The text was updated successfully, but these errors were encountered: