From ec12c484d2242b0761d617c33622c122e7007c08 Mon Sep 17 00:00:00 2001 From: Daniel Thoma Date: Thu, 21 Oct 2021 00:25:55 +0200 Subject: [PATCH] Make device appearence use u16 instead of u32 as specified by the BlueZ D-Bus Device API. --- bluer/src/device.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bluer/src/device.rs b/bluer/src/device.rs index e2e576f..bf6e3f2 100644 --- a/bluer/src/device.rs +++ b/bluer/src/device.rs @@ -323,8 +323,8 @@ define_properties!( /// External appearance of device, as found on GAP service. property( - Appearance, u32, - dbus: (INTERFACE, "Appearance", u32, OPTIONAL), + Appearance, u16, + dbus: (INTERFACE, "Appearance", u16, OPTIONAL), get: (appearance, v => {v.to_owned()}), );