tests/multi_bluetooth/ble_gap_advertise.py: Allow to work without set.

Signed-off-by: Damien George <damien@micropython.org>
pull/7353/head
Damien George 2021-04-26 00:37:36 +10:00
rodzic da8e47da21
commit 7842085434
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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: