You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scriptmodules/supplementary/bluetooth.sh
+19-5Lines changed: 19 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -85,22 +85,36 @@ function list_available_bluetooth() {
85
85
local device_name
86
86
local info_text="\n\nSearching ..."
87
87
88
+
declare -A registered=()
89
+
declare -A found=()
90
+
91
+
# get an asc array of registered mac addresses
92
+
whileread mac_address;read device_name;do
93
+
registered+=(["$mac_address"]="$device_name")
94
+
done<<(list_registered_bluetooth)
95
+
88
96
# sixaxis: add USB pairing information
89
97
[[ -n"$(lsmod | grep hid_sony)" ]] && info_text="Searching ...\n\nDualShock registration: while this text is visible, unplug the controller, press the PS/SHARE button, and then replug the controller."
0 commit comments