"increased BL_start Timer (500 -> 1000) "

This commit is contained in:
2025-08-18 08:55:24 +02:00
parent b9e9688269
commit 36a4d53df6
3 changed files with 12 additions and 10 deletions

View File

@@ -189,7 +189,7 @@ int main(int argc, char **argv) {
}
Update u(fi.absoluteFilePath(), libca, debug, noaction);
// u.run();
u.run();
qInfo() << "<DC-UPDATE-FINISH>";

View File

@@ -400,19 +400,19 @@ int Update::run() {
// TODO
resetDeviceController();
if (startBootloader()) {
#if 0
int currentBlock = 0;
DownloadResult res = DownloadResult::OK;
qInfo() << nextTimePoint().toUtf8().constData() << "64-byte block" << currentBlock;
while (res != DownloadResult::ERROR && currentBlock < m_totalBlocks) {
while (res != DownloadResult::ERROR && currentBlock <= m_totalBlocks) {
if ((res = sendNextAddress(currentBlock)) != DownloadResult::ERROR) {
if ((res = sendNextDataBlock(ba, currentBlock)) != DownloadResult::ERROR) {
currentBlock += 1;
} else break;
}
}
#endif
#if 0
qCritical() << "DownloadThread::run(): last 64-byte block %04d" << currentBlock;