mirror of
https://github.com/google/bumble.git
synced 2026-05-08 03:58:01 +00:00
code style update
This commit is contained in:
@@ -945,7 +945,6 @@ class Device(CompositeEventEmitter):
|
|||||||
if isinstance(attribute, Service):
|
if isinstance(attribute, Service):
|
||||||
self.advertising_data += attribute.get_service_advertising_data()
|
self.advertising_data += attribute.get_service_advertising_data()
|
||||||
|
|
||||||
|
|
||||||
# Set/update the advertising data if the advertising type allows it
|
# Set/update the advertising data if the advertising type allows it
|
||||||
if advertising_type.has_data:
|
if advertising_type.has_data:
|
||||||
await self.send_command(HCI_LE_Set_Advertising_Data_Command(
|
await self.send_command(HCI_LE_Set_Advertising_Data_Command(
|
||||||
|
|||||||
@@ -210,7 +210,6 @@ class Service(Attribute):
|
|||||||
self.characteristics = characteristics[:]
|
self.characteristics = characteristics[:]
|
||||||
self.primary = primary
|
self.primary = primary
|
||||||
|
|
||||||
|
|
||||||
def get_service_advertising_data(self):
|
def get_service_advertising_data(self):
|
||||||
"""
|
"""
|
||||||
Get Service specific advertising data
|
Get Service specific advertising data
|
||||||
@@ -218,7 +217,6 @@ class Service(Attribute):
|
|||||||
"""
|
"""
|
||||||
return b''
|
return b''
|
||||||
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f'Service(handle=0x{self.handle:04X}, end=0x{self.end_group_handle:04X}, uuid={self.uuid}){"" if self.primary else "*"}'
|
return f'Service(handle=0x{self.handle:04X}, end=0x{self.end_group_handle:04X}, uuid={self.uuid}){"" if self.primary else "*"}'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user