Skip to content

Commit

Permalink
tests/multi_bluetooth/ble_gap_advertise.py: Allow to work without set.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Jun 5, 2021
1 parent 7a9d762 commit 9efe9b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/multi_bluetooth/ble_gap_advertise.py
Expand Up @@ -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:
Expand Down

0 comments on commit 9efe9b9

Please sign in to comment.