We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5bbcdb1 + 0a498c9 commit 17465e3Copy full SHA for 17465e3
iop/usb/usbd/src/device.c
@@ -55,7 +55,7 @@ int doGetDeviceLocation(UsbdDevice_t *dev, u8 *path)
55
return USB_RC_BADHUBDEPTH;
56
for ( cpCount = 0; cpCount < 7; cpCount += 1 )
57
{
58
- path[cpCount] = (cpCount < count) ? tmpPath[count - cpCount - 1] : 0;
+ path[cpCount] = (cpCount < count) ? tmpPath[count - (cpCount + 1)] : 0;
59
}
60
return USB_RC_OK;
61
0 commit comments