mirror of
https://github.com/Team-Resurgent/XboxMemCard.git
synced 2026-08-15 11:18:05 -07:00
Fix invalid usb descriptor error in windows (#1)
This commit is contained in:
+7
-7
@@ -75,14 +75,14 @@ target_include_directories(
|
||||
|
||||
# In addition to pico_stdlib required for common PicoSDK functionality, add dependency on tinyusb_device
|
||||
# for TinyUSB device support and tinyusb_board for the additional board support library used by the example
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC
|
||||
pico_stdlib
|
||||
pico_unique_id
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC
|
||||
pico_stdlib
|
||||
pico_unique_id
|
||||
pico_multicore
|
||||
tinyusb_device
|
||||
tinyusb_board
|
||||
hardware_spi
|
||||
hardware_i2c
|
||||
tinyusb_device
|
||||
tinyusb_board
|
||||
hardware_spi
|
||||
hardware_i2c
|
||||
FatFsSPI
|
||||
PIDisplayLib
|
||||
)
|
||||
|
||||
+4
-4
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2019 Ha Thach (tinyusb.org)
|
||||
@@ -122,9 +122,9 @@ void tud_msc_inquiry_cb(uint8_t lun, uint8_t vendor_id[8], uint8_t product_id[16
|
||||
const char pid[] = "Mass Storage";
|
||||
const char rev[] = "1.0";
|
||||
|
||||
memcpy(vendor_id , vid, strlen(vid));
|
||||
memcpy(product_id , pid, strlen(pid));
|
||||
memcpy(product_rev, rev, strlen(rev));
|
||||
snprintf((char*)vendor_id, 8, "%s", vid);
|
||||
snprintf((char*)product_id, 16, "%s", pid);
|
||||
snprintf((char*)product_rev, 4, "%s", rev);
|
||||
}
|
||||
|
||||
// Invoked when received Test Unit Ready command.
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ static const tusb_desc_device_t XID_DESC_DEVICE =
|
||||
.bMaxPacketSize0 = CFG_TUD_ENDPOINT0_SIZE,
|
||||
|
||||
.idVendor = 0x045E,
|
||||
.idProduct = 0x0289,
|
||||
.idProduct = 0x0280,
|
||||
.bcdDevice = 0x0121,
|
||||
|
||||
.iManufacturer = 0x00,
|
||||
|
||||
Reference in New Issue
Block a user