usbd_gs_can: use NUM_CAN_CHANNEL to set USBD_GS_CAN_dconf::icount

...instead of hard coding 1 channel.
This commit is contained in:
Venelin Efremov 2023-01-18 17:35:21 -08:00 committed by Marc Kleine-Budde
parent 23f43f17e3
commit 7a4fcc16e8

View File

@ -233,7 +233,7 @@ static const uint8_t USBD_MS_EXT_PROP_FEATURE_DESC[] = {
// device info // device info
static const struct gs_device_config USBD_GS_CAN_dconf = { static const struct gs_device_config USBD_GS_CAN_dconf = {
.icount = 0, .icount = NUM_CAN_CHANNEL - 1,
.sw_version = 2, .sw_version = 2,
.hw_version = 1, .hw_version = 1,
}; };