fix demos

This commit is contained in:
Andrew J. Kroll 2013-12-19 13:01:48 -05:00
parent 6638f61352
commit f789c65c02
2 changed files with 6 additions and 6 deletions

View file

@ -20,7 +20,7 @@ uint32_t next_time;
void PrintAllAddresses(UsbDevice *pdev) void PrintAllAddresses(UsbDevice *pdev)
{ {
UsbDeviceAddress adr; UsbDeviceAddress adr;
adr.devAddress = pdev->address; adr.devAddress = pdev->address.devAddress;
Serial.print("\r\nAddr:"); Serial.print("\r\nAddr:");
Serial.print(adr.devAddress, HEX); Serial.print(adr.devAddress, HEX);
Serial.print("("); Serial.print("(");
@ -90,9 +90,9 @@ void PrintDescriptors(uint8_t addr)
void PrintAllDescriptors(UsbDevice *pdev) void PrintAllDescriptors(UsbDevice *pdev)
{ {
Serial.println("\r\n"); Serial.println("\r\n");
print_hex(pdev->address, 8); print_hex(pdev->address.devAddress, 8);
Serial.println("\r\n--"); Serial.println("\r\n--");
PrintDescriptors( pdev->address ); PrintDescriptors( pdev->address.devAddress );
} }
void loop() void loop()

View file

@ -16,7 +16,7 @@ uint32_t next_time;
void PrintAllAddresses(UsbDevice *pdev) void PrintAllAddresses(UsbDevice *pdev)
{ {
UsbDeviceAddress adr; UsbDeviceAddress adr;
adr.devAddress = pdev->address; adr.devAddress = pdev->address.devAddress;
Serial.print("\r\nAddr:"); Serial.print("\r\nAddr:");
Serial.print(adr.devAddress, HEX); Serial.print(adr.devAddress, HEX);
Serial.print("("); Serial.print("(");
@ -86,9 +86,9 @@ void PrintDescriptors(uint8_t addr)
void PrintAllDescriptors(UsbDevice *pdev) void PrintAllDescriptors(UsbDevice *pdev)
{ {
Serial.println("\r\n"); Serial.println("\r\n");
print_hex(pdev->address, 8); print_hex(pdev->address.devAddress, 8);
Serial.println("\r\n--"); Serial.println("\r\n--");
PrintDescriptors( pdev->address ); PrintDescriptors( pdev->address.devAddress );
} }
void loop() void loop()