Skip to content

Commit

Permalink
Make non-gatt variant work
Browse files Browse the repository at this point in the history
  • Loading branch information
lulf committed Dec 18, 2024
1 parent 12c7390 commit 4c048d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion host/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ pub enum ConnectionEvent<'d> {
reason: Status,
},
/// GATT event.
#[cfg(feature = "gatt")]
Gatt {
/// The event that was returned,
#[cfg(feature = "gatt")]
data: crate::gatt::GattData<'d>,
#[cfg(not(feature = "gatt"))]
connection: Connection<'d>,
},
}

Expand Down Expand Up @@ -106,6 +108,7 @@ impl<'d> Connection<'d> {
self.manager.post_event(self.index, event).await
}

#[cfg(feature = "gatt")]
pub(crate) fn alloc_tx(&self) -> Result<Packet<'d>, Error> {
self.manager.alloc_tx()
}
Expand Down

0 comments on commit 4c048d5

Please sign in to comment.