summaryrefslogtreecommitdiff
path: root/examples/device/hid_composite/src
diff options
context:
space:
mode:
authorgraham sanderson <[email protected]>2022-06-27 22:39:10 +0100
committergraham sanderson <[email protected]>2022-06-27 22:43:41 +0100
commit4057c2d8d96a364329d14d3a4b2c237f388cfdc2 (patch)
treee95dadbcb70b02ff461738395b80cfa32a3c5b8f /examples/device/hid_composite/src
parent2f7f3e604eb2641dd87a524ab282939bda6b3348 (diff)
rework suppress_tinyusb_warnings
* gcc 9.2.1 has some spurious -Wconversion warnings * cmake 3.18 and above require set_target_properties to be added from the target directory (so added it to all examples) * fixed a few warnings in a couple of examples
Diffstat (limited to 'examples/device/hid_composite/src')
-rw-r--r--examples/device/hid_composite/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/hid_composite/src/main.c b/examples/device/hid_composite/src/main.c
index bc2347ab8..cc3566ac1 100644
--- a/examples/device/hid_composite/src/main.c
+++ b/examples/device/hid_composite/src/main.c
@@ -230,7 +230,7 @@ void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint8_t
(void) instance;
(void) len;
- uint8_t next_report_id = report[0] + 1;
+ uint8_t next_report_id = (uint8_t)(report[0] + 1);
if (next_report_id < REPORT_ID_COUNT)
{