summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-04-26 00:37:36 +1000
committerDamien George <damien@micropython.org>2021-06-06 21:58:07 +1000
commit784208543448e8022b185a82015e107f04960738 (patch)
tree75354ea75c30a59d2573e0430b7d240596625d65
parentda8e47da21caba25994b6160ef8a2095ca1871ac (diff)
tests/multi_bluetooth/ble_gap_advertise.py: Allow to work without set.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--tests/multi_bluetooth/ble_gap_advertise.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/multi_bluetooth/ble_gap_advertise.py b/tests/multi_bluetooth/ble_gap_advertise.py
index bb1ef94a7..67c8bf459 100644
--- a/tests/multi_bluetooth/ble_gap_advertise.py
+++ b/tests/multi_bluetooth/ble_gap_advertise.py
@@ -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: