Skip to content

Commit

Permalink
gap/linux: add helpful comment
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <ron@hybridgroup.com>
  • Loading branch information
deadprogram committed Sep 29, 2022
1 parent 57f82b6 commit 79bbc2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gap_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ func makeScanResult(props *device.Device1Properties) ScanResult {

mData := make(map[uint16][]byte)
for k, v := range props.ManufacturerData {
// can be either variant or just byte value
switch val := v.(type) {
case dbus.Variant:
mData[k] = val.Value().([]byte)
Expand Down

0 comments on commit 79bbc2e

Please sign in to comment.