Merge pull request #3892 from mkj/pr/otg-outbuf
otg: Allow exact out buffer size
This commit is contained in:
		
						commit
						fbdd2e7a77
					
				| @ -357,7 +357,7 @@ impl<'d, const MAX_EP_COUNT: usize> Driver<'d, MAX_EP_COUNT> { | |||||||
|         ); |         ); | ||||||
| 
 | 
 | ||||||
|         if D::dir() == Direction::Out { |         if D::dir() == Direction::Out { | ||||||
|             if self.ep_out_buffer_offset + max_packet_size as usize >= self.ep_out_buffer.len() { |             if self.ep_out_buffer_offset + max_packet_size as usize > self.ep_out_buffer.len() { | ||||||
|                 error!("Not enough endpoint out buffer capacity"); |                 error!("Not enough endpoint out buffer capacity"); | ||||||
|                 return Err(EndpointAllocError); |                 return Err(EndpointAllocError); | ||||||
|             } |             } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user