From 21ed86acc2e2887f46221592a6601bcce150fdda Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Wed, 14 Feb 2024 20:30:04 +1100 Subject: [PATCH] My Devices fix --- docs/RANDOM_MAC.md | 2 ++ front/php/server/devices.php | 1 + 2 files changed, 3 insertions(+) diff --git a/docs/RANDOM_MAC.md b/docs/RANDOM_MAC.md index c632569d..fd109f3b 100755 --- a/docs/RANDOM_MAC.md +++ b/docs/RANDOM_MAC.md @@ -16,6 +16,8 @@ WIFI's**, in this way, Pi.Alert will be able to identify the device, and it will not identify it as a new device every so often (every time IOS or Android decides to change the MAC). +**Random MACs** are recognized by the characters "2", "6", "A", or "E" as the 2nd character in the Mac address. You can disable specific prefixes to be detected as random MAC addresses by specifying the `UI_NOT_RANDOM_MAC` setting. + ## IOS ![ios][ios] diff --git a/front/php/server/devices.php b/front/php/server/devices.php index 92dee959..5f3df254 100755 --- a/front/php/server/devices.php +++ b/front/php/server/devices.php @@ -1159,6 +1159,7 @@ function copyFromDevice() { //------------------------------------------------------------------------------ function getDeviceCondition ($deviceStatus) { switch ($deviceStatus) { + case 'all': return 'WHERE dev_Archived=0'; break; case 'my': return 'WHERE dev_Archived=0'; break; case 'connected': return 'WHERE dev_Archived=0 AND dev_PresentLastScan=1'; break; case 'favorites': return 'WHERE dev_Archived=0 AND dev_Favorite=1'; break;