mirror of https://github.com/arendst/Tasmota.git
parent
5ddd5633ff
commit
944cf3877f
|
@ -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), ' '));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue