@@ -603,23 +603,23 @@ bool usbtmcd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request
603
603
if (ep_addr == usbtmc_state .ep_bulk_out )
604
604
{
605
605
criticalEnter ();
606
- usbd_edpt_stall (rhport , ep_addr );
607
- usbd_edpt_clear_stall (rhport , ep_addr );
606
+ usbd_edpt_stall (rhport , ( uint8_t ) ep_addr );
607
+ usbd_edpt_clear_stall (rhport , ( uint8_t ) ep_addr );
608
608
usbtmc_state .state = STATE_NAK ; // USBD core has placed EP in NAK state for us
609
609
criticalLeave ();
610
610
tud_usbtmc_bulkOut_clearFeature_cb ();
611
611
}
612
612
else if (ep_addr == usbtmc_state .ep_bulk_in )
613
613
{
614
- usbd_edpt_stall (rhport , ep_addr );
615
- usbd_edpt_clear_stall (rhport , ep_addr );
614
+ usbd_edpt_stall (rhport , ( uint8_t ) ep_addr );
615
+ usbd_edpt_clear_stall (rhport , ( uint8_t ) ep_addr );
616
616
tud_usbtmc_bulkIn_clearFeature_cb ();
617
617
}
618
618
else if ((usbtmc_state .ep_int_in != 0 ) && (ep_addr == usbtmc_state .ep_int_in ))
619
619
{
620
620
// Clearing interrupt in EP
621
- usbd_edpt_stall (rhport , ep_addr );
622
- usbd_edpt_clear_stall (rhport , ep_addr );
621
+ usbd_edpt_stall (rhport , ( uint8_t ) ep_addr );
622
+ usbd_edpt_clear_stall (rhport , ( uint8_t ) ep_addr );
623
623
}
624
624
else
625
625
{
0 commit comments