Skip to content

Commit

Permalink
connect: more MAC adresses (fixes #1826) (#1829)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogi authored Jan 29, 2024
1 parent 08bcb33 commit e99ac71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: treehouses remote release

on:
workflow_dispatch:
push:
branches:
- 'master'
workflow_dispatch:

jobs:
apk:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,12 @@ class RPIDialogFragment : BaseDialogFragment(), DeviceDeleteListener {
}

fun checkPiAddress(deviceHardwareAddress: String): Boolean {
val piAddress: Set<String> = HashSet(listOf("B8:27:EB", "DC:A6:32", "E4:5F:01", "28:CD:C1",
"B8-27-EB", "DC-A6-32", "E4-5F-01", "28-CD-C1",
"B827.EB", "DCA6.32", "E45F.01", "28CD.C1",
"b8:27:eb", "dc:a6:32", "e4:5f:01", "28:cd:c1",
"b8-27-eb", "dc-a6-32", "e4-5f-01", "28-cd-c1",
"b827.eb", "dca6.32", "e45f.01", "28cd.c1"))
val piAddress: Set<String> = HashSet(listOf("B8:27:EB", "DC:A6:32", "E4:5F:01", "28:CD:C1", "E4:F5:01",
"B8-27-EB", "DC-A6-32", "E4-5F-01", "28-CD-C1", "E4-F5-01",
"B827.EB", "DCA6.32", "E45F.01", "28CD.C1", "E4F5.01",
"b8:27:eb", "dc:a6:32", "e4:5f:01", "28:cd:c1", "e4:f5:01",
"b8-27-eb", "dc-a6-32", "e4-5f-01", "28-cd-c1", "e4-f5-01",
"b827.eb", "dca6.32", "e45f.01", "28cd.c1", "e4f5.01"))
for (item in piAddress) {
if (deviceHardwareAddress.contains(item)) return true
}
Expand Down

0 comments on commit e99ac71

Please sign in to comment.