From 0d6940e4cad294a8b598f5f5dad3e37e2ce5fdc3 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 8 Jul 2023 09:47:46 +0100 Subject: [PATCH] Disable survey unless survey key is defined --- src/network/network_survey.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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