From 9573869c7c77aa199a0b046f80ba660f9c5e28e0 Mon Sep 17 00:00:00 2001 From: Proddy Date: Fri, 22 Jul 2022 15:55:58 +0200 Subject: [PATCH] fix compile errors with debug --- src/test/test.cpp | 2 ++ src/test/test.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/test.cpp b/src/test/test.cpp index 7410cd07f..c69b437d9 100644 --- a/src/test/test.cpp +++ b/src/test/test.cpp @@ -692,6 +692,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const EMSESP::mqtt_.incoming("ems-esp/boiler/wwseltemp", "59"); } +#if defined(EMSESP_STANDALONE) // https://github.com/emsesp/EMS-ESP32/issues/541 if (command == "api_wwmode") { shell.printfln(F("Testing API wwmode")); @@ -710,6 +711,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const request.url("/api/thermostat/wwmode"); EMSESP::webAPIService.webAPIService_post(&request, json); } +#endif if (command == "api") { shell.printfln(F("Testing API with MQTT and REST, standalone")); diff --git a/src/test/test.h b/src/test/test.h index 30bc6f307..21c2e0918 100644 --- a/src/test/test.h +++ b/src/test/test.h @@ -32,7 +32,7 @@ namespace emsesp { // #define EMSESP_DEBUG_DEFAULT "web" // #define EMSESP_DEBUG_DEFAULT "mqtt" // #define EMSESP_DEBUG_DEFAULT "general" -// #define EMSESP_DEBUG_DEFAULT "boiler" +#define EMSESP_DEBUG_DEFAULT "boiler" // #define EMSESP_DEBUG_DEFAULT "mqtt2" // #define EMSESP_DEBUG_DEFAULT "mqtt_nested" // #define EMSESP_DEBUG_DEFAULT "ha" @@ -50,7 +50,7 @@ namespace emsesp { // #define EMSESP_DEBUG_DEFAULT "analog" // #define EMSESP_DEBUG_DEFAULT "api_values" // #define EMSESP_DEBUG_DEFAULT "mqtt_post" -#define EMSESP_DEBUG_DEFAULT "api_wwmode" +// #define EMSESP_DEBUG_DEFAULT "api_wwmode" class Test { public: