mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-23 22:43:49 +00:00
USBTMC: explicit type conversions fix
This commit is contained in:
parent
c675debfb2
commit
54250d7dd5
@ -603,23 +603,23 @@ bool usbtmcd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request
|
||||
if(ep_addr == usbtmc_state.ep_bulk_out)
|
||||
{
|
||||
criticalEnter();
|
||||
usbd_edpt_stall(rhport, ep_addr);
|
||||
usbd_edpt_clear_stall(rhport, ep_addr);
|
||||
usbd_edpt_stall(rhport, (uint8_t)ep_addr);
|
||||
usbd_edpt_clear_stall(rhport, (uint8_t)ep_addr);
|
||||
usbtmc_state.state = STATE_NAK; // USBD core has placed EP in NAK state for us
|
||||
criticalLeave();
|
||||
tud_usbtmc_bulkOut_clearFeature_cb();
|
||||
}
|
||||
else if (ep_addr == usbtmc_state.ep_bulk_in)
|
||||
{
|
||||
usbd_edpt_stall(rhport, ep_addr);
|
||||
usbd_edpt_clear_stall(rhport, ep_addr);
|
||||
usbd_edpt_stall(rhport, (uint8_t)ep_addr);
|
||||
usbd_edpt_clear_stall(rhport, (uint8_t)ep_addr);
|
||||
tud_usbtmc_bulkIn_clearFeature_cb();
|
||||
}
|
||||
else if ((usbtmc_state.ep_int_in != 0) && (ep_addr == usbtmc_state.ep_int_in))
|
||||
{
|
||||
// Clearing interrupt in EP
|
||||
usbd_edpt_stall(rhport, ep_addr);
|
||||
usbd_edpt_clear_stall(rhport, ep_addr);
|
||||
usbd_edpt_stall(rhport, (uint8_t)ep_addr);
|
||||
usbd_edpt_clear_stall(rhport, (uint8_t)ep_addr);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user