diff --git a/src/runProc.cpp b/src/runProc.cpp index 137e7e5..f89049c 100644 --- a/src/runProc.cpp +++ b/src/runProc.cpp @@ -641,8 +641,11 @@ void T_runProc::bl_rebootDC(void) // BL is working for 5s after power-on-reset. uint8_t len, buf[20]; + memset(buf, 0x00, sizeof(buf)); len=dcBL_restartDC(buf); + + qCritical() << __func__ << QByteArray((const char *)buf, len).toHex(':'); sendWRcmd_setSendBlock160(len, buf); } @@ -652,8 +655,13 @@ void T_runProc::bl_startBL(void) // otherwise the BL jumps to normal DC application uint8_t len, buf[20]; + memset(buf, 0x00, sizeof(buf)); + len=dcBL_activatBootloader(buf); + + qCritical() << __func__ << QByteArray((const char *)buf, len).toHex(':'); sendWRcmd_setSendBlock160(len, buf); + epi_setNowIsBootload(true); } @@ -661,8 +669,11 @@ void T_runProc::bl_checkBL(void) { // call this function in order to get information, afterwards use "bl_isUp()" uint8_t len, buf[20]; + memset(buf, 0x00, sizeof(buf)); len=dcBL_readFWversion(buf); + + qCritical() << __func__ << QByteArray((const char *)buf, len).toHex(':'); sendWRcmd_setSendBlock160(len, buf); }