clean up
This commit is contained in:
		@@ -1149,8 +1149,8 @@ bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t
 | 
			
		||||
 | 
			
		||||
  TU_LOG2("  Queue EP %02X with %u bytes ... ", ep_addr, total_bytes);
 | 
			
		||||
 | 
			
		||||
  // Attempt to transfer on busy or not claimed (skip now) endpoint, sound like an race condition !
 | 
			
		||||
  TU_ASSERT(_usbd_dev.ep_status[epnum][dir].busy == 0 /*&& _usbd_dev.ep_status[epnum][dir].claimed == 1*/);
 | 
			
		||||
  // Attempt to transfer on a busy endpoint, sound like an race condition !
 | 
			
		||||
  TU_ASSERT(_usbd_dev.ep_status[epnum][dir].busy == 0);
 | 
			
		||||
 | 
			
		||||
  // Set busy first since the actual transfer can be complete before dcd_edpt_xfer() could return
 | 
			
		||||
  // and usbd task can preempt and clear the busy
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user