Minor: add debug out put. memset buffers to be printed.
This commit is contained in:
		| @@ -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); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user