bug fix for control_read
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2012-05-19 Niibe Yutaka <gniibe@fsij.org>
|
||||
|
||||
* src/usb_lld.c (handle_datastage_in): Bug fix, erable RX when
|
||||
sending ZLP. It will be possible to get OUT transaction soon
|
||||
after IN transaction.
|
||||
|
||||
2012-05-18 Niibe Yutaka <gniibe@fsij.org>
|
||||
|
||||
* src/usb_lld.c (handle_datastage_out): Fix rx copying.
|
||||
|
||||
@@ -422,11 +422,11 @@ static void handle_datastage_in (void)
|
||||
|
||||
/* No more data to send. Send empty packet */
|
||||
st103_set_tx_count (ENDP0, 0);
|
||||
st103_ep_set_tx_status (ENDP0, EP_TX_VALID);
|
||||
st103_ep_set_rxtx_status (ENDP0, EP_RX_VALID, EP_TX_VALID);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* No more data to send, but receive OUT acknowledge.*/
|
||||
/* No more data to send, proceed to receive OUT acknowledge.*/
|
||||
dev_p->state = WAIT_STATUS_OUT;
|
||||
st103_ep_set_rxtx_status (ENDP0, EP_RX_VALID, EP_TX_STALL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user