diff --git a/address.h b/address.h index f3da24f8..ee7a8d2f 100644 --- a/address.h +++ b/address.h @@ -2,6 +2,7 @@ #define __ADDRESS_H__ #include +#include #include "max3421e.h" #define USB_NAK_MAX_POWER 15 //NAK binary order maximum value @@ -179,8 +180,8 @@ public: // Allocates new address virtual uint8_t AllocAddress(uint8_t parent, bool is_hub = false, uint8_t port = 0) { - if (parent != 0 && port == 0) - Serial.println("PRT:0"); + /* if (parent != 0 && port == 0) + Serial.println("PRT:0"); */ if (parent > 127 || port > 7) return 0; @@ -222,14 +223,14 @@ public: addr.bmAddress = port; } thePool[index].address = *((uint8_t*)&addr); - +/* Serial.print("Addr:"); Serial.print(addr.bmHub, HEX); Serial.print("."); Serial.print(addr.bmParent, HEX); Serial.print("."); Serial.println(addr.bmAddress, HEX); - +*/ return thePool[index].address; }; // Empties pool entry diff --git a/usbhost.h b/usbhost.h index 46212f31..4c7da560 100644 --- a/usbhost.h +++ b/usbhost.h @@ -2,7 +2,7 @@ #ifndef _USBHOST_H_ #define _USBHOST_H_ -#include +//#include #include "avrpins.h" #include "max3421e.h" #include "usb_ch9.h" @@ -251,7 +251,7 @@ uint8_t MAX3421e< SS, INTR >::Task( void ) //Serial.println( vbusState, HEX ); pinvalue = INTR::IsSet(); //Read(); //pinvalue = digitalRead( MAX_INT ); - if( pinvalue == LOW ) { + if( pinvalue == 0 ) { rcode = IntHandler(); } // pinvalue = digitalRead( MAX_GPX );