mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Attempt to fix the progress bar issue on Companion Read Firmware function on Windows, dfu-util 0.7 (DFU mode)
This commit is contained in:
parent
95a2990c5d
commit
a22bcd01f7
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ void FlashProcess::analyseStandardOutput(const QString & text)
|
||||||
progress->setValue(pos);
|
progress->setValue(pos);
|
||||||
}
|
}
|
||||||
else if (currStdoutLine.startsWith("[") && progress->getText().contains("bytes_per_hash=2048")) {
|
else if (currStdoutLine.startsWith("[") && progress->getText().contains("bytes_per_hash=2048")) {
|
||||||
int pos = (currStdoutLine.lastIndexOf("#") - 1) * 2048 / (2 * 1024 * 1024); // TODO depends on bin size
|
int pos = (currStdoutLine.lastIndexOf("#") - 1) * 2048 * 100 / (2 * 1024 * 1024); // TODO depends on bin size
|
||||||
progress->setValue(pos);
|
progress->setValue(pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue