mirror of
https://github.com/candle-usb/candleLight_fw.git
synced 2025-01-14 05:42:53 +08:00
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:
parent
23f43f17e3
commit
7a4fcc16e8
@ -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,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user