From 0338e3b12363dd1bd82ba64c9201721a3f00c955 Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Thu, 18 Nov 2021 15:27:51 +0100 Subject: [PATCH] Fixed compilation for non-ledstrip-users --- main/webserver_dumpnvs.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main/webserver_dumpnvs.h b/main/webserver_dumpnvs.h index 7607665..2f00540 100644 --- a/main/webserver_dumpnvs.h +++ b/main/webserver_dumpnvs.h @@ -39,8 +39,10 @@ typename std::enable_if< !std::is_same::value && !std::is_same::value && !std::is_same::value && - !std::is_same::value && - !std::is_same::value + !std::is_same::value +#if defined(FEATURE_LEDSTRIP) && defined(FEATURE_OTA) + && !std::is_same::value +#endif , bool>::type showInputForSetting(std::string_view key, T value, JsonObject &body) { @@ -120,6 +122,8 @@ showInputForSetting(std::string_view key, T value, JsonObject &body) return true; } +#if defined(FEATURE_LEDSTRIP) && defined(FEATURE_OTA) + template typename std::enable_if< std::is_same::value @@ -129,6 +133,7 @@ showInputForSetting(std::string_view key, T value, JsonObject &body) body[key] = int(value); return true; } +#endif esp_err_t webserver_dump_nvs_handler(httpd_req_t *req) {