K3YOMI / Wall-of-Flippers

A simple and easy way to find Flipper Zero Devices and Bluetooth Low Energy Based Attacks
MIT License
780 stars 57 forks source link

Fix Flipper MAC detection #1

Closed elliotwutingfeng closed 9 months ago

elliotwutingfeng commented 9 months ago

I think the MAC address detection is not working as intended.

adv_addr = "80:e1:27"
print(("80:e1:26" or "80:e1:27") in adv_addr)
# Output: False

any(adv_addr.startswith(addr) for addr in ("80:e1:26", "80:e1:27"))
# Output: True
K3YOMI commented 9 months ago

Ah, thank you. Noticed the mistake. 👍