Final fix buffer dump

Final fix buffer dump
This commit is contained in:
Theo Arends 2019-08-22 12:36:13 +02:00
parent 5ddd5633ff
commit 944cf3877f
1 changed files with 1 additions and 1 deletions

View File

@ -1557,7 +1557,7 @@ void AddLogBuffer(uint32_t loglevel, uint8_t *buffer, uint32_t count)
ToHex_P(buffer, count, log_data + strlen(log_data), sizeof(log_data) - strlen(log_data), ' '); ToHex_P(buffer, count, log_data + strlen(log_data), sizeof(log_data) - strlen(log_data), ' ');
AddLog(loglevel); AddLog(loglevel);
*/ */
char hex_char[count * 3]; char hex_char[(count * 3) + 2];
AddLog_P2(loglevel, PSTR("DMP: %s"), ToHex_P(buffer, count, hex_char, sizeof(hex_char), ' ')); AddLog_P2(loglevel, PSTR("DMP: %s"), ToHex_P(buffer, count, hex_char, sizeof(hex_char), ' '));
} }