switchbrew / libnx

Library for Switch Homebrew

Home Page:https://switchbrew.github.io/libnx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

usb:hs doesn't seem to be properly implemented

XorTroll opened this issue · comments

I was playing around with usb:hs, and since posting buffers would always fail with result 0x3228C, I decided to do some testings with https://github.com/Stary2001/nx-fatdrive-cpp, which worked fine with older libnx versions (I have used this project several times), but none of my FAT32 USBs worked, all hanging for the same reason.
This service seems to be a little bit messy, considering changes between versions, but I can guarantee that all this would work fine with older libnx versions.

Make sure you're using the right endpoints, see releases changelog & the example (older releases used to have input/output endpoints swapped in UsbHsInterfaceInfo).

I thought that the swap of endpoints was handled internally by libnx, so the sources should be updated swapping the endpoints...?

Swapping them works fine :P

If you're for example using input_endpoint_descs and actually wanted OUTPUT, change it to output.

I did that, just that it feels a little bit weird :P

https://github.com/switchbrew/libnx/releases/tag/v3.0.0

Apps using that struct previously had to work-around this by using the wrong endpoint field, with this release apps have to revert it to the proper endpoint field.