Skip to content

Commit a923958

Browse files
committed
$line var name fix
1 parent 2bbd8d6 commit a923958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

load

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ function load() {
1616
progress_bar 0
1717
while read line; do
1818
line=$(printf '%s\r' "$line" | xxd -p | tr -d '\n')
19-
for ((index=0; index<${#string}; index+=180)); do
19+
for ((index=0; index<${#line}; index+=180)); do
2020
result=$(gatttool -i hci0 \
21-
-n ${string:index:180} \
21+
-n ${line:index:180} \
2222
-a 0x0031 \
2323
-b "$mac_address" \
2424
--char-write-req 2>&1)

0 commit comments

Comments
 (0)