diff --git a/src/network/network_survey.h b/src/network/network_survey.h index 48206e51cd..59815c8006 100644 --- a/src/network/network_survey.h +++ b/src/network/network_survey.h @@ -40,7 +40,7 @@ public: constexpr static bool IsSurveyPossible() { -#ifndef WITH_NLOHMANN_JSON +#if !(defined(WITH_NLOHMANN_JSON) && defined(SURVEY_KEY)) /* Without JSON library, we cannot send a payload; so we disable the survey. */ return false; #else