Skip to content

Commit

Permalink
Merge pull request #97 from mertzt89/fix-uuid-parsing
Browse files Browse the repository at this point in the history
Fix 128-bit UUID parsing in discover_characteristic
  • Loading branch information
lulf authored Aug 26, 2024
2 parents ba738d4 + 79b357b commit ad1c71e
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 ad1c71e

Please sign in to comment.