From c599b4e6d63ba448b28c39d7de2fc89d1054b09d Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Thu, 28 Jun 2018 12:25:21 +0200 Subject: [PATCH] fix mqtt json --- src/main.cpp | 2 +- src/main.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 635b302..4374e23 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -206,7 +206,7 @@ void ICACHE_FLASH_ATTR getValuesJSON(char* buffer, const size_t buf_len, int for // root["millis"] = millis(); // root["heap"] = ESP.getFreeHeap(); - root.printTo(buffer, sizeof(buffer)); + root.printTo(buffer, buf_len); } } diff --git a/src/main.h b/src/main.h index 7f5d92a..c6a0418 100644 --- a/src/main.h +++ b/src/main.h @@ -7,6 +7,6 @@ #define DEBUG_MSG(...) #endif -#define FW_VERSION 25 +#define FW_VERSION 26 #endif /* _MAIN_H */