Skip to content

Commit

Permalink
Return characteristic even if next was not cccd
Browse files Browse the repository at this point in the history
Fixes #115
  • Loading branch information
lulf committed Sep 18, 2024
1 parent d9d2e80 commit 3135b3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions host/src/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,11 @@ impl<'d, M: RawMutex, const MAX: usize> AttributeTable<'d, M, MAX> {
handle,
cccd_handle: Some(next.handle),
});
} else {
return Ok(Characteristic {
handle,
cccd_handle: None,
});
}
} else {
return Ok(Characteristic {
Expand Down

0 comments on commit 3135b3b

Please sign in to comment.