From fb5cf3cc6aa46d3624d4c188e61140e5c207866f Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 2 Feb 2024 13:40:21 +0100 Subject: [PATCH] Minor: add debug out put. memset buffers to be printed. --- src/runProc.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); }