mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
fix demos
This commit is contained in:
parent
6638f61352
commit
f789c65c02
2 changed files with 6 additions and 6 deletions
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue