Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bab8dea7 authored by Archie Pusaka's avatar Archie Pusaka
Browse files

Floss: Fix metrics misaligned enum

Misaligned enum causes metrics to be wrongly (un)reported.

Bug: 330825031
Test: m -j
Test: Verify HID/HoG profile change is logged properly
Tag: #floss
Flag: EXEMPT, floss only changes
Change-Id: I0ccc4559f115f9dae5eec5483b55e4cd651fe3cd
parent 7ada9e56
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -81,6 +81,8 @@ enum class ProfilesFloss {
  A2dpSink = 0,
  A2dpSource,
  AdvAudioDist,
  Bas,
  Dis,
  Hsp,
  HspAg,
  Hfp,
+1 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ pub const COORDINATED_SET: &str = "00001846-0000-1000-8000-00805F9B34FB";
pub const BASE_UUID: &str = "00000000-0000-1000-8000-00805F9B34FB";

/// List of profiles that with known uuids.
/// Append new profiles to the end of the enum. Do not insert it in the middle.
#[derive(Clone, Debug, Hash, PartialEq, PartialOrd, Eq, Ord, FromPrimitive, ToPrimitive, Copy)]
#[repr(u32)]
pub enum Profile {