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) {