1
0
mirror of https://github.com/gdsports/USBHost_t36 synced 2024-11-21 16:45:04 -05:00

Fix periodic list init when diffent sizes used

This commit is contained in:
PaulStoffregen 2017-03-29 17:33:37 -07:00
parent c70cf5fef6
commit 50016717b3

View File

@ -167,7 +167,7 @@ void USBHost::begin()
//println(" reset waited ", count);
init_Device_Pipe_Transfer_memory();
for (int i=0; i < 32; i++) {
for (int i=0; i < PERIODIC_LIST_SIZE; i++) {
periodictable[i] = 1;
}
memset(uframe_bandwidth, 0, sizeof(uframe_bandwidth));