summaryrefslogtreecommitdiff
path: root/examples/host/bare_api/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-03-09 11:21:13 +0700
committerhathach <[email protected]>2022-03-09 11:21:13 +0700
commitf920e1c17102cac04b20ad3908efff24d96d8e7c (patch)
treebafaea720860bcd9d1babdad3f8f252ec789706a /examples/host/bare_api/src
parentdb9d97c9473f29ad59a87d641e6d41a27a00f332 (diff)
rename host descriptor function
Diffstat (limited to 'examples/host/bare_api/src')
-rw-r--r--examples/host/bare_api/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/host/bare_api/src/main.c b/examples/host/bare_api/src/main.c
index 2fe5999bc..5f8f886c8 100644
--- a/examples/host/bare_api/src/main.c
+++ b/examples/host/bare_api/src/main.c
@@ -108,7 +108,7 @@ void tuh_mount_cb (uint8_t daddr)
printf("Device attached, address = %d\r\n", daddr);
// get device descriptor
- tuh_descriptor_device_get(daddr, &desc_device, 18, print_device_descriptor);
+ tuh_descriptor_get_device(daddr, &desc_device, 18, print_device_descriptor);
}
/// Invoked when device is unmounted (bus reset/unplugged)