Inline never in usbd-{ccid,ctaphid}

This commit is contained in:
Nicolas Stalder
2022-03-17 23:23:14 +01:00
committed by Nicolas Stalder
parent 64f0368635
commit d326ae2c6d
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -114,6 +114,7 @@ where
.then(|| FUNCTIONAL_INTERFACE_STRING)
}
#[inline(never)]
fn poll(&mut self) {
// info_now!("poll of ccid");
self.pipe.poll_app();
+2
View File
@@ -351,6 +351,7 @@ where
self.state = State::Processing;
}
#[inline(never)]
pub fn poll_app(&mut self) {
if let State::Processing = self.state {
// info!("processing, checking for response, interchange state {:?}",
@@ -476,6 +477,7 @@ where
self.maybe_send_packet();
}
#[inline(never)]
pub fn maybe_send_packet(&mut self) {
if let Some(packet) = self.outbox.as_ref() {
let needs_zlp = packet.len() == PACKET_SIZE;