make usbh_packet->data of union type
out: const void * in: void * Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
This commit is contained in:
parent
e0fbb799bd
commit
4aa69b4eaf
7 changed files with 20 additions and 17 deletions
|
|
@ -738,7 +738,7 @@ static void read_ep1(void *drvdata)
|
|||
usbh_packet_t packet;
|
||||
|
||||
packet.address = hub->device[0]->address;
|
||||
packet.data = hub->buffer;
|
||||
packet.data.in = hub->buffer;
|
||||
packet.datalen = hub->endpoint_in_maxpacketsize;
|
||||
packet.endpoint_address = hub->endpoint_in_address;
|
||||
packet.endpoint_size_max = hub->endpoint_in_maxpacketsize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue