summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
authorRémi Berthoz <[email protected]>2026-01-14 19:51:01 +0100
committerRémi Berthoz <[email protected]>2026-01-14 19:51:01 +0100
commitbd760e5e37cf8be0c6ac9be48eb9f3852e3a0424 (patch)
tree4ad2c93a379929121004bf20ba0a504b3ceede01 /examples/device
parentc6fb438a3437c23a7ff931c4370154eade8cd960 (diff)
parent5e6e9e6ad0cf7b49b3ed3b6d18c20be57afeef06 (diff)
Merge 'upstream/master' into device-class-printer
Diffstat (limited to 'examples/device')
-rw-r--r--examples/device/mtp/src/mtp_fs_example.c2
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;