File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -59,22 +59,22 @@ log_user 0
5959set timeout -1
6060match_max 100000
6161spawn bluetoothctl
62- expect "*# "
62+ expect "*> "
6363send "menu scan\r"
64- expect "*# "
64+ expect "*> "
6565send "clear\r"
66- expect "*# "
66+ expect "*> "
6767send "transport bredr\r"
68- expect "*# "
68+ expect "*> "
6969send "back\r"
70- expect "*# "
70+ expect "*> "
7171send "scan on\r"
7272expect "Discovery started\r"
73- expect "*# "
73+ expect "*> "
7474sleep $SCAN_DURATION
7575send "scan off\r"
7676expect "Discovery stopped\r"
77- expect "*# "
77+ expect "*> "
7878send "quit\r"
7979expect eof
8080EOF
@@ -90,20 +90,20 @@ log_user 0
9090set timeout -1
9191match_max 100000
9292spawn bluetoothctl
93- expect "*# "
93+ expect "*> "
9494send "menu scan\r"
95- expect "*# "
95+ expect "*> "
9696send "clear\r"
97- expect "*# "
97+ expect "*> "
9898send "back\r"
99- expect "*# "
99+ expect "*> "
100100send "scan on\r"
101101expect "Discovery started\r"
102- expect "*# "
102+ expect "*> "
103103sleep $SCAN_DURATION
104104send "scan off\r"
105105expect "Discovery stopped\r"
106- expect "*# "
106+ expect "*> "
107107send "quit\r"
108108expect eof
109109EOF
@@ -215,10 +215,10 @@ log_user 0
215215set timeout -1
216216match_max 100000
217217spawn bluetoothctl
218- expect "*# "
218+ expect "*> "
219219send "pair $DEVICE \r"
220220expect "Attempting to pair with $DEVICE \r"
221- expect "*# "
221+ expect "*> "
222222sleep $WAIT_FOR_PAIR
223223send "quit\r"
224224expect eof
@@ -235,10 +235,10 @@ log_user 0
235235set timeout -1
236236match_max 100000
237237spawn bluetoothctl
238- expect "*# "
238+ expect "*> "
239239send "connect $DEVICE \r"
240240expect "Attempting to connect to $DEVICE \r"
241- expect "*# "
241+ expect "*> "
242242sleep $WAIT_FOR_CONNECT
243243send "quit\r"
244244expect eof
You can’t perform that action at this time.
0 commit comments