1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-12-27 19:06:01 +00:00

Use UsbState enum values from latest libnx.

This commit is contained in:
Pablo Curiel 2020-12-06 18:45:30 -04:00
parent 6c931988d3
commit 5a070f624c

View file

@ -1133,9 +1133,9 @@ static bool usbInitializeDeviceInterface1x(void)
NX_INLINE bool usbIsHostAvailable(void)
{
u32 state = 0;
UsbState state = UsbState_Detached;
Result rc = usbDsGetState(&state);
return (R_SUCCEEDED(rc) && state == 5);
return (R_SUCCEEDED(rc) && state == UsbState_Configured);
}
NX_INLINE void usbSetZltPacket(bool enable)