mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-29 13:42:11 +00:00
Use UsbState enum values from latest libnx.
This commit is contained in:
parent
6c931988d3
commit
5a070f624c
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue