Skip to content

Commit

Permalink
bugfix(otg_fs): fix used variable
Browse files Browse the repository at this point in the history
last is not used in endpoint.rs/data_out. Fix the warning.
  • Loading branch information
Dummyc0m authored and Codetector1374 committed Nov 3, 2024
1 parent 5fad626 commit a64664e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/otg_fs/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ where
.await
}

async fn data_out(&mut self, buf: &mut [u8], first: bool, last: bool) -> Result<usize, EndpointError> {
async fn data_out(&mut self, buf: &mut [u8], first: bool, _last: bool) -> Result<usize, EndpointError> {
let regs = T::regs();

if buf.len() > self.ep0_buf.max_packet_size as usize {
Expand Down

0 comments on commit a64664e

Please sign in to comment.