Skip to content

Commit bf9c840

Browse files
committed
retroarch: bluetooth: add pairable on to pairing steps
1 parent ef0cb1e commit bf9c840

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
diff --git a/bluetooth/drivers/bluetoothctl.c b/bluetooth/drivers/bluetoothctl.c
2+
index f3205c8ee9..31f5a24447 100644
3+
--- a/bluetooth/drivers/bluetoothctl.c
4+
+++ b/bluetooth/drivers/bluetoothctl.c
5+
@@ -170,8 +170,7 @@ static bool bluetoothctl_connect_device(void *data, unsigned idx)
6+
string_list_free(list);
7+
8+
snprintf(btctl->command, sizeof(btctl->command), "\
9+
- bluetoothctl -- trust %s",
10+
- device);
11+
+ bluetoothctl -- pairable on");
12+
13+
pclose(popen(btctl->command, "r"));
14+
15+
@@ -181,6 +180,12 @@ static bool bluetoothctl_connect_device(void *data, unsigned idx)
16+
17+
pclose(popen(btctl->command, "r"));
18+
19+
+ snprintf(btctl->command, sizeof(btctl->command), "\
20+
+ bluetoothctl -- trust %s",
21+
+ device);
22+
+
23+
+ pclose(popen(btctl->command, "r"));
24+
+
25+
snprintf(btctl->command, sizeof(btctl->command), "\
26+
bluetoothctl -- connect %s",
27+
device);

0 commit comments

Comments
 (0)