Skip to content

Commit

Permalink
fixed byte order
Browse files Browse the repository at this point in the history
  • Loading branch information
MnlPhlp committed Jun 9, 2023
1 parent b90e354 commit c10e5fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utilities/ble_uuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ impl core::fmt::Debug for BleUuid {

impl From<uuid::Uuid> for BleUuid {
fn from(uuid: uuid::Uuid) -> Self {
Self::Uuid128(uuid.into_bytes())
let mut bytes = uuid.as_bytes().clone();
bytes.reverse();
Self::Uuid128(bytes)
}
}

Expand Down

0 comments on commit c10e5fa

Please sign in to comment.