Skip to content

Commit

Permalink
Fix bug with CAN_CMD_PACKET_SIZE
Browse files Browse the repository at this point in the history
For some reason I thought I'd be smart and change this to match the commands I was seeing.  Not a great idea.  Confirmed that this resolved CAN issues on the canable device.
  • Loading branch information
ryedwards committed Nov 2, 2022
1 parent 6e2813c commit 61337a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/usbd_gs_can.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ THE SOFTWARE.
#if defined(CANFD_SUPPORT)
#define CAN_CMD_PACKET_SIZE 72 /* Control Endpoint Packet size */
#else
#define CAN_CMD_PACKET_SIZE 32 /* Control Endpoint Packet size */
#define CAN_CMD_PACKET_SIZE 64 /* Control Endpoint Packet size */
#endif
#define USB_CAN_CONFIG_DESC_SIZ 50
#ifndef NUM_CAN_CHANNEL
Expand Down

0 comments on commit 61337a0

Please sign in to comment.