Skip to content

Commit

Permalink
Update cdc_enumerate.c
Browse files Browse the repository at this point in the history
'c' should be initialized to 0, throws error 1 otherwise.
  • Loading branch information
NasserN authored Sep 1, 2023
1 parent 979cad0 commit ca37a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdc_enumerate.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ uint32_t USB_WriteCore(const void *pData, uint32_t length, uint8_t ep_num, bool
//* \brief Send zero length packet through the control endpoint
//*----------------------------------------------------------------------------
void AT91F_USB_SendZlp(void) {
uint8_t c;
uint8_t c = 0;
USB_Write(&c, 0, 0);
}

Expand Down

0 comments on commit ca37a6f

Please sign in to comment.