We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b38a41 commit 9ac80d9Copy full SHA for 9ac80d9
cores/arduino/USB/samd21_host.c
@@ -147,10 +147,7 @@ void UHD_Init(void)
147
USB->HOST.DESCADD.reg = (uint32_t)(&usb_pipe_table[0]);
148
// For USB_SPEED_FULL
149
uhd_force_full_speed();
150
- for (i = 0; i < sizeof(usb_pipe_table); i++)
151
- {
152
- (*(uint32_t *)(&usb_pipe_table[0] + i)) = 0;
153
- }
+ memset((void *)usb_pipe_table, 0, sizeof(usb_pipe_table));
154
155
uhd_state = UHD_STATE_NO_VBUS;
156
0 commit comments