From f789c65c02ba437a18d9e6930c8e7c771573cead Mon Sep 17 00:00:00 2001 From: "Andrew J. Kroll" Date: Thu, 19 Dec 2013 13:01:48 -0500 Subject: [PATCH] fix demos --- examples/USB_desc/USB_desc.ino | 6 +++--- examples/hub_demo/hub_demo.ino | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/USB_desc/USB_desc.ino b/examples/USB_desc/USB_desc.ino index 71e2fdc3..b0013914 100644 --- a/examples/USB_desc/USB_desc.ino +++ b/examples/USB_desc/USB_desc.ino @@ -20,7 +20,7 @@ uint32_t next_time; void PrintAllAddresses(UsbDevice *pdev) { UsbDeviceAddress adr; - adr.devAddress = pdev->address; + adr.devAddress = pdev->address.devAddress; Serial.print("\r\nAddr:"); Serial.print(adr.devAddress, HEX); Serial.print("("); @@ -90,9 +90,9 @@ void PrintDescriptors(uint8_t addr) void PrintAllDescriptors(UsbDevice *pdev) { Serial.println("\r\n"); - print_hex(pdev->address, 8); + print_hex(pdev->address.devAddress, 8); Serial.println("\r\n--"); - PrintDescriptors( pdev->address ); + PrintDescriptors( pdev->address.devAddress ); } void loop() diff --git a/examples/hub_demo/hub_demo.ino b/examples/hub_demo/hub_demo.ino index d80d9ea2..466ae4d7 100644 --- a/examples/hub_demo/hub_demo.ino +++ b/examples/hub_demo/hub_demo.ino @@ -16,7 +16,7 @@ uint32_t next_time; void PrintAllAddresses(UsbDevice *pdev) { UsbDeviceAddress adr; - adr.devAddress = pdev->address; + adr.devAddress = pdev->address.devAddress; Serial.print("\r\nAddr:"); Serial.print(adr.devAddress, HEX); Serial.print("("); @@ -86,9 +86,9 @@ void PrintDescriptors(uint8_t addr) void PrintAllDescriptors(UsbDevice *pdev) { Serial.println("\r\n"); - print_hex(pdev->address, 8); + print_hex(pdev->address.devAddress, 8); Serial.println("\r\n--"); - PrintDescriptors( pdev->address ); + PrintDescriptors( pdev->address.devAddress ); } void loop()