diff options
| author | Zixun LI <[email protected]> | 2026-01-14 09:51:50 +0100 |
|---|---|---|
| committer | Zixun LI <[email protected]> | 2026-01-14 09:51:50 +0100 |
| commit | 796e7c23320f6fb48007e8b773841784f420b577 (patch) | |
| tree | 1647c7967a377d8021510033602b61fefe22bb50 /examples | |
| parent | 7a4e3d0821fb7913fbcca55018b41e66a6339df6 (diff) | |
| parent | 5e6e9e6ad0cf7b49b3ed3b6d18c20be57afeef06 (diff) | |
Merge remote-tracking branch 'tinyusb/master' into bsp_h7_tm4c
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/mtp/src/mtp_fs_example.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/mtp/src/mtp_fs_example.c b/examples/device/mtp/src/mtp_fs_example.c index 7fd7db61b..60fc9f79e 100644 --- a/examples/device/mtp/src/mtp_fs_example.c +++ b/examples/device/mtp/src/mtp_fs_example.c @@ -557,7 +557,7 @@ static int32_t fs_send_object_info(tud_mtp_cb_data_t* cb_data) { return MTP_RESP_INVALID_STORAGE_ID; } - if (obj_info->parent_object != 0) { // not root + if (obj_info->parent_object != 0 && obj_info->parent_object != 0xFFFFFFFFu) { // not root fs_file_t* parent = fs_get_file(obj_info->parent_object); if (parent == NULL || 0u == parent->association_type) { return MTP_RESP_INVALID_PARENT_OBJECT; |
