Skip to content

Commit

Permalink
Fix 128-bit UUID parsing in discover_characteristic
Browse files Browse the repository at this point in the history
  • Loading branch information
mertzt89 committed Aug 26, 2024
1 parent d77d3f6 commit 79b357b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/src/gatt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl<'reference, 'resources, T: Controller, const MAX: usize, const L2CAP_MTU: u
let mut r = ReadCursor::new(item);
let _props: u8 = r.read()?;
let value_handle: u16 = r.read()?;
let value_uuid: Uuid = r.read()?;
let value_uuid: Uuid = Uuid::from_slice(r.remaining());

if uuid == &value_uuid {
return Ok(Characteristic {
Expand Down

0 comments on commit 79b357b

Please sign in to comment.