summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorBen Avison <[email protected]>2022-09-01 12:34:25 +0100
committerBen Avison <[email protected]>2022-09-13 18:00:50 +0100
commit53f0d5538bd2ab171567c9ba3138522accc8145d (patch)
treefdc9738ada21bdc7c3bc95f06f48b5c07ff61673 /src/class
parent65ba15c37d50fa470fa24c38dbf0e30eba3147c0 (diff)
Don't assume ints automatically convert to enums
IAR generates warning Pe188 'enumerated type mixed with another type'.
Diffstat (limited to 'src/class')
-rw-r--r--src/class/cdc/cdc_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c
index ee824cb4e..09acc0c70 100644
--- a/src/class/cdc/cdc_host.c
+++ b/src/class/cdc/cdc_host.c
@@ -245,7 +245,7 @@ bool cdch_set_config(uint8_t dev_addr, uint8_t itf_num)
bool cdch_xfer_cb(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t event, uint32_t xferred_bytes)
{
(void) ep_addr;
- tuh_cdc_xfer_isr( dev_addr, event, 0, xferred_bytes );
+ tuh_cdc_xfer_isr( dev_addr, event, (cdc_pipeid_t) 0, xferred_bytes );
return true;
}