We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e030e4e commit 66850f8Copy full SHA for 66850f8
bbload
@@ -51,10 +51,10 @@ function load() {
51
52
for chunk in ${!chunks[@]}; do
53
result="$(gatttool -i hci0 \
54
- -a 0x0031 \
55
- -b "$mac_address" \
56
- -n "${chunks[chunk]}" \
57
- --char-write-req 2>&1)"
+ -a 0x0031 \
+ -b "$mac_address" \
+ -n "${chunks[chunk]}" \
+ --char-write-req 2>&1)"
58
if [[ "$result" == "Characteristic value was written successfully" ]]; then
59
percentage=$(bc <<< "scale=2; ($((chunk+1))/${#chunks[@]})*100")
60
upload_progress "${percentage%.*}"
0 commit comments