Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
78420854
Commit
78420854
authored
Apr 26, 2021
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/multi_bluetooth/ble_gap_advertise.py: Allow to work without set.
Signed-off-by:
Damien George
<
damien@micropython.org
>
parent
da8e47da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/multi_bluetooth/ble_gap_advertise.py
tests/multi_bluetooth/ble_gap_advertise.py
+2
-2
No files found.
tests/multi_bluetooth/ble_gap_advertise.py
View file @
78420854
...
...
@@ -30,14 +30,14 @@ def instance0():
def
instance1
():
multitest
.
next
()
finished
=
False
adv_types
=
set
()
adv_types
=
{}
adv_data
=
None
def
irq
(
ev
,
data
):
nonlocal
finished
,
adv_types
,
adv_data
if
ev
==
_IRQ_SCAN_RESULT
:
if
data
[
0
]
==
BDADDR
[
0
]
and
data
[
1
]
==
BDADDR
[
1
]:
adv_types
.
add
(
data
[
2
])
adv_types
[
data
[
2
]]
=
True
if
adv_data
is
None
:
adv_data
=
bytes
(
data
[
4
])
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment