From c2474f8d5db85f3bb24719939985199afe96c565 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 21 Aug 2019 09:44:34 +0200 Subject: [PATCH] Quick fix MHZ19 watchdog reset Quick fix MHZ19 watchdog reset (#6266) --- sonoff/support.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sonoff/support.ino b/sonoff/support.ino index f78199aac..b62bd6026 100644 --- a/sonoff/support.ino +++ b/sonoff/support.ino @@ -1545,20 +1545,21 @@ void AddLog_Debug(PGM_P formatP, ...) void AddLogBuffer(uint32_t loglevel, uint8_t *buffer, uint32_t count) { -/* snprintf_P(log_data, sizeof(log_data), PSTR("DMP:")); for (uint32_t i = 0; i < count; i++) { snprintf_P(log_data, sizeof(log_data), PSTR("%s %02X"), log_data, *(buffer++)); } AddLog(loglevel); -*/ + /* strcpy_P(log_data, PSTR("DMP: ")); ToHex_P(buffer, count, log_data + strlen(log_data), sizeof(log_data) - strlen(log_data), ' '); AddLog(loglevel); */ +/* char hex_char[count * 3]; AddLog_P2(loglevel, PSTR("DMP: %s"), ToHex_P(buffer, count, hex_char, sizeof(hex_char), ' ')); +*/ } void AddLogSerial(uint32_t loglevel)