mirror of
https://github.com/trezor/trezor-firmware.git
synced 2026-02-20 00:33:30 +01:00
fixup! refactor(rust/trezor-thp): separate handling for host-side broadcast messages
This commit is contained in:
@@ -92,6 +92,9 @@ where
|
||||
|
||||
/// Enqueue channel allocation request.
|
||||
pub fn request_channel(&mut self, try_to_unlock: bool) {
|
||||
if !matches!(self.channel_allocation, AllocationState::None) {
|
||||
log::warn!("Abandoned previous channel allocation request.");
|
||||
}
|
||||
self.channel_allocation = AllocationState::SendingRequest { try_to_unlock };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user