From 1694a0b41d56dd38dc5774445687696fee757ed2 Mon Sep 17 00:00:00 2001 From: Proddy Date: Sun, 4 Feb 2024 14:50:28 +0100 Subject: [PATCH] use default test general --- src/test/test.cpp | 2 +- src/test/test.h | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/test/test.cpp b/src/test/test.cpp index 999f0c7ce..2d39fbd47 100644 --- a/src/test/test.cpp +++ b/src/test/test.cpp @@ -332,7 +332,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const ok = true; } - if (command == "custom_entities") { + if (command == "custom") { shell.printfln("Adding custom entities..."); // add some dummy entities diff --git a/src/test/test.h b/src/test/test.h index 5fbbe38c9..6a4ef2a25 100644 --- a/src/test/test.h +++ b/src/test/test.h @@ -27,8 +27,6 @@ namespace emsesp { -// #define EMSESP_DEBUG_DEFAULT "general" - // #define EMSESP_DEBUG_DEFAULT "thermostat" // #define EMSESP_DEBUG_DEFAULT "solar" // #define EMSESP_DEBUG_DEFAULT "web" @@ -48,7 +46,7 @@ namespace emsesp { // #define EMSESP_DEBUG_DEFAULT "lastcode" // #define EMSESP_DEBUG_DEFAULT "2thermostats" // #define EMSESP_DEBUG_DEFAULT "temperature" -#define EMSESP_DEBUG_DEFAULT "analog" +// #define EMSESP_DEBUG_DEFAULT "analog" // #define EMSESP_DEBUG_DEFAULT "api_values" // #define EMSESP_DEBUG_DEFAULT "mqtt_post" // #define EMSESP_DEBUG_DEFAULT "api_wwmode" @@ -56,10 +54,14 @@ namespace emsesp { // #define EMSESP_DEBUG_DEFAULT "entity_dump" // #define EMSESP_DEBUG_DEFAULT "memory" // #define EMSESP_DEBUG_DEFAULT "coldshot" -// #define EMSESP_DEBUG_DEFAULT "custom_entities" +// #define EMSESP_DEBUG_DEFAULT "custom" // #define EMSESP_DEBUG_DEFAULT "scheduler" // #define EMSESP_DEBUG_DEFAULT "heat_exchange" +#ifndef EMSESP_DEBUG_DEFAULT +#define EMSESP_DEBUG_DEFAULT "general" +#endif + class Test { public: static void run_test(uuid::console::Shell & shell, const std::string & command, const std::string & id1 = "", const std::string & id2 = "");