From 50016717b3e34bfb851fb1bc829c87a823cede9e Mon Sep 17 00:00:00 2001 From: PaulStoffregen Date: Wed, 29 Mar 2017 17:33:37 -0700 Subject: [PATCH] Fix periodic list init when diffent sizes used --- ehci.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ehci.cpp b/ehci.cpp index 6dc685a..7e04639 100644 --- a/ehci.cpp +++ b/ehci.cpp @@ -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));