File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -66,13 +66,14 @@ class AdafruitServerAdvertisement(Advertisement):
66
66
"""Advertise the Adafruit company ID and the board USB PID.
67
67
"""
68
68
69
- prefix = struct .pack (
70
- "<BBHBH" ,
71
- 0x6 ,
72
- _MANUFACTURING_DATA_ADT ,
73
- _ADAFRUIT_COMPANY_ID ,
74
- struct .calcsize ("<HH" ),
75
- _PID_DATA_ID ,
69
+ match_prefixes = (
70
+ struct .pack (
71
+ "<BHBH" ,
72
+ _MANUFACTURING_DATA_ADT ,
73
+ _ADAFRUIT_COMPANY_ID ,
74
+ struct .calcsize ("<HH" ),
75
+ _PID_DATA_ID ,
76
+ ),
76
77
)
77
78
manufacturer_data = LazyObjectField (
78
79
ManufacturerData ,
@@ -90,10 +91,6 @@ def __init__(self):
90
91
self .flags .general_discovery = True
91
92
self .flags .le_only = True
92
93
93
- @classmethod
94
- def matches (cls , entry ):
95
- return entry .matches (cls .prefix , all = False )
96
-
97
94
98
95
class AdafruitService (Service ):
99
96
"""Common superclass for all Adafruit board services."""
You can’t perform that action at this time.
0 commit comments