From 7a4fcc16e84a5cd762bc83faf293a883e1685f46 Mon Sep 17 00:00:00 2001 From: Venelin Efremov Date: Wed, 18 Jan 2023 17:35:21 -0800 Subject: [PATCH] usbd_gs_can: use NUM_CAN_CHANNEL to set USBD_GS_CAN_dconf::icount ...instead of hard coding 1 channel. --- src/usbd_gs_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usbd_gs_can.c b/src/usbd_gs_can.c index 532c434..136bbc8 100644 --- a/src/usbd_gs_can.c +++ b/src/usbd_gs_can.c @@ -233,7 +233,7 @@ static const uint8_t USBD_MS_EXT_PROP_FEATURE_DESC[] = { // device info static const struct gs_device_config USBD_GS_CAN_dconf = { - .icount = 0, + .icount = NUM_CAN_CHANNEL - 1, .sw_version = 2, .hw_version = 1, };