mirror of
https://github.com/trussed-dev/usbd-ccid.git
synced 2026-06-20 04:16:20 -07:00
Inline never in usbd-{ccid,ctaphid}
This commit is contained in:
committed by
Nicolas Stalder
parent
64f0368635
commit
d326ae2c6d
@@ -114,6 +114,7 @@ where
|
||||
.then(|| FUNCTIONAL_INTERFACE_STRING)
|
||||
}
|
||||
|
||||
#[inline(never)]
|
||||
fn poll(&mut self) {
|
||||
// info_now!("poll of ccid");
|
||||
self.pipe.poll_app();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user