mirror of
https://github.com/google/bumble.git
synced 2026-06-01 07:37:02 +00:00
formatting and linting automation
Squashed commits: [cd479ba] formatting and linting automation [7fbfabb] formatting and linting automation [c4f9505] fix after rebase [f506ad4] rename job [441d517] update doc (+7 squashed commits) [2e1b416] fix invoke and github action [6ae5bb4] doc for git blame [44b5461] add GitHub action [b07474f] add docs [4cd9a6f] more linter fixes [db71901] wip [540dc88] wip
This commit is contained in:
@@ -60,8 +60,8 @@ def my_custom_read_with_error(connection):
|
||||
print('----- READ from', connection, '[returning error]')
|
||||
if connection.is_encrypted:
|
||||
return bytes([123])
|
||||
else:
|
||||
raise ATT_Error(ATT_INSUFFICIENT_ENCRYPTION_ERROR)
|
||||
|
||||
raise ATT_Error(ATT_INSUFFICIENT_ENCRYPTION_ERROR)
|
||||
|
||||
|
||||
def my_custom_write_with_error(connection, value):
|
||||
@@ -74,7 +74,8 @@ def my_custom_write_with_error(connection, value):
|
||||
async def main():
|
||||
if len(sys.argv) < 3:
|
||||
print(
|
||||
'Usage: run_gatt_server.py <device-config> <transport-spec> [<bluetooth-address>]'
|
||||
'Usage: run_gatt_server.py <device-config> <transport-spec> '
|
||||
'[<bluetooth-address>]'
|
||||
)
|
||||
print('example: run_gatt_server.py device1.json usb:0 E1:CA:72:48:C4:E8')
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user