@@ -18,7 +18,7 @@ func (d *Device) DiscoverServices(uuids []UUID) ([]DeviceService, error) {
18
18
d .prph .DiscoverServices ([]cbgo.UUID {})
19
19
20
20
// clear cache of services
21
- d .services = make (map [UUID ]* DeviceService )
21
+ d .services = make (map [UUID ]DeviceService )
22
22
23
23
// wait on channel for service discovery
24
24
select {
@@ -49,7 +49,7 @@ func (d *Device) DiscoverServices(uuids []UUID) ([]DeviceService, error) {
49
49
},
50
50
}
51
51
svcs = append (svcs , svc )
52
- d .services [svc .uuidWrapper ] = & svc
52
+ d .services [svc .uuidWrapper ] = svc
53
53
}
54
54
return svcs , nil
55
55
case <- time .NewTimer (10 * time .Second ).C :
@@ -72,7 +72,7 @@ type deviceService struct {
72
72
device * Device
73
73
74
74
service cbgo.Service
75
- characteristics map [UUID ]* DeviceCharacteristic
75
+ characteristics map [UUID ]DeviceCharacteristic
76
76
}
77
77
78
78
// UUID returns the UUID for this DeviceService.
@@ -95,7 +95,7 @@ func (s *DeviceService) DiscoverCharacteristics(uuids []UUID) ([]DeviceCharacter
95
95
s .device .prph .DiscoverCharacteristics (cbuuids , s .service )
96
96
97
97
// clear cache of characteristics
98
- s .characteristics = make (map [UUID ]* DeviceCharacteristic )
98
+ s .characteristics = make (map [UUID ]DeviceCharacteristic )
99
99
100
100
// wait on channel for characteristic discovery
101
101
select {
@@ -150,7 +150,7 @@ func (s *DeviceService) makeCharacteristic(uuid UUID, dchar cbgo.Characteristic)
150
150
characteristic : dchar ,
151
151
},
152
152
}
153
- s .characteristics [char .uuidWrapper ] = & char
153
+ s .characteristics [char .uuidWrapper ] = char
154
154
return char
155
155
}
156
156
0 commit comments