forked from auracaster/bumble_mirror
format
This commit is contained in:
@@ -976,9 +976,6 @@ class AdvertisingData:
|
||||
if ad_type == AdvertisingData.MANUFACTURER_SPECIFIC_DATA:
|
||||
return (cast(int, struct.unpack_from('<H', ad_data, 0)[0]), ad_data[2:])
|
||||
|
||||
if ad_type == AdvertisingData.LE_BLUETOOTH_DEVICE_ADDRESS:
|
||||
return Address(ad_data)
|
||||
|
||||
return ad_data
|
||||
|
||||
def append(self, data):
|
||||
|
||||
@@ -65,11 +65,11 @@ class OobData:
|
||||
elif ad_type == AdvertisingData.LE_ROLE:
|
||||
instance.role = LeRole(ad_data[0])
|
||||
elif ad_type == AdvertisingData.LE_SECURE_CONNECTIONS_CONFIRMATION_VALUE:
|
||||
shared_data_c: Optional[bytes] = AdvertisingData.ad_data_to_object(
|
||||
shared_data_c = AdvertisingData.ad_data_to_object(
|
||||
ad_type, ad_data
|
||||
)
|
||||
elif ad_type == AdvertisingData.LE_SECURE_CONNECTIONS_RANDOM_VALUE:
|
||||
shared_data_r: bytes = AdvertisingData.ad_data_to_object(
|
||||
shared_data_r = AdvertisingData.ad_data_to_object(
|
||||
ad_type, ad_data
|
||||
)
|
||||
elif ad_type == AdvertisingData.SECURITY_MANAGER_TK_VALUE:
|
||||
|
||||
Reference in New Issue
Block a user