summaryrefslogtreecommitdiff
path: root/examples/device/usbtmc/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-06-27 11:50:17 +0700
committerhathach <[email protected]>2022-06-27 11:50:17 +0700
commitb9dc9dbd78ee1890342429502d585f323c480fc2 (patch)
tree922509c3012736c3b7b564c99d8c27ef77d60013 /examples/device/usbtmc/src
parent0042eccb3b2ff0f980f3a927a271364a2089ada5 (diff)
fix most warnings with rp2040 -wconversion
Diffstat (limited to 'examples/device/usbtmc/src')
-rw-r--r--examples/device/usbtmc/src/usb_descriptors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/usbtmc/src/usb_descriptors.c b/examples/device/usbtmc/src/usb_descriptors.c
index 423482634..770a97436 100644
--- a/examples/device/usbtmc/src/usb_descriptors.c
+++ b/examples/device/usbtmc/src/usb_descriptors.c
@@ -175,7 +175,7 @@ uint16_t const* tud_descriptor_string_cb(uint8_t index, uint16_t langid)
const char* str = string_desc_arr[index];
// Cap at max char
- chr_count = strlen(str);
+ chr_count = (uint8_t) strlen(str);
if ( chr_count > 31 ) {
chr_count = 31;
}