NicoHood/HID

reset USB whilst script is running

spriggsy opened this issue · 0 comments

I need to reset my AT32u4 upon certain conditions. this is done by sending a hid command from my android device that halts the watchdog. unfortunately doing it this way breaks the HID communication. is there a way of disabling/stopping the USB library before i reset so that when it restarts it gets re-enumerated by the host?

Ive tried calling RawHID.end() and RawHID.disable()
but it still does not get dropped from windows

Many thanks

Spriggsy