Bladeren bron

Fix build error.

MasterPhi 4 jaren geleden
bovenliggende
commit
bae0d3b7bb
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/portable/microchip/samx7x/dcd_samx7x.c

+ 1 - 1
src/portable/microchip/samx7x/dcd_samx7x.c

@@ -531,7 +531,7 @@ bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * ep_desc)
 void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr)
 void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr)
 {
 {
   uint8_t const epnum  = tu_edpt_number(ep_addr);
   uint8_t const epnum  = tu_edpt_number(ep_addr);
-  uint8_t const dir    = tu_edpt_dir(ep_addr);
+  (void) ep_addr;
 
 
   // Disable endpoint interrupt
   // Disable endpoint interrupt
   USBHS->USBHS_DEVIDR = 1 << (USBHS_DEVIDR_PEP_0_Pos + epnum);
   USBHS->USBHS_DEVIDR = 1 << (USBHS_DEVIDR_PEP_0_Pos + epnum);