summaryrefslogtreecommitdiff
path: root/src/class/cdc/cdc_device.c
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-10-24 00:19:19 +0700
committerGitHub <[email protected]>2021-10-24 00:19:19 +0700
commitffde3bd33d1fcd66c1ebc6019cde8e82ff43db3b (patch)
tree4119b44658bc6d66947ba0e4605fea16ea4ea678 /src/class/cdc/cdc_device.c
parentb541c0f5e07696ead205666e43c726b14277e0d9 (diff)
parent311c05b401591507cbc4977926bcc878d3f119aa (diff)
Merge pull request #1159 from hathach/fix-warnings
Increase compiler warnings flags
Diffstat (limited to 'src/class/cdc/cdc_device.c')
-rw-r--r--src/class/cdc/cdc_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/cdc/cdc_device.c b/src/class/cdc/cdc_device.c
index e622bd616..74c116192 100644
--- a/src/class/cdc/cdc_device.c
+++ b/src/class/cdc/cdc_device.c
@@ -229,7 +229,7 @@ void cdcd_init(void)
{
cdcd_interface_t* p_cdc = &_cdcd_itf[i];
- p_cdc->wanted_char = -1;
+ p_cdc->wanted_char = (char) -1;
// default line coding is : stop bit = 1, parity = none, data bits = 8
p_cdc->line_coding.bit_rate = 115200;