mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 02:08:50 +01:00
bluetooth GenNetworkList skip mac address
This commit is contained in:
parent
31de17e669
commit
f10768f8b0
@ -1,5 +1,5 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
import re
|
||||||
import pygame
|
import pygame
|
||||||
#import math
|
#import math
|
||||||
import commands
|
import commands
|
||||||
@ -568,6 +568,10 @@ class BluetoothPage(Page):
|
|||||||
if "Name" in self._Devices[v]:
|
if "Name" in self._Devices[v]:
|
||||||
if len(self._Devices[v]["Name"]) < 2:
|
if len(self._Devices[v]["Name"]) < 2:
|
||||||
continue
|
continue
|
||||||
|
if re.match("[0-9a-f]{2}([-:]?)[0-9a-f]{2}(\\1[0-9a-f]{2}){4}$", self._Devices[v]["Name"].lower()):
|
||||||
|
continue
|
||||||
|
else:
|
||||||
|
continue
|
||||||
|
|
||||||
ni = NetItem()
|
ni = NetItem()
|
||||||
ni._Parent = self
|
ni._Parent = self
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user