From 69b2ba006c9b9213c54ac1145715d4b3a888ab57 Mon Sep 17 00:00:00 2001 From: Sergey Polyakov Date: Wed, 2 Oct 2019 22:03:55 +0200 Subject: [PATCH] Fix Core build with SPARK_NO_CLOUD --- system/src/system_cloud_internal.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/src/system_cloud_internal.cpp b/system/src/system_cloud_internal.cpp index b6c54d6a33..eeb1e883d2 100644 --- a/system/src/system_cloud_internal.cpp +++ b/system/src/system_cloud_internal.cpp @@ -1100,6 +1100,8 @@ CloudDiagnostics* CloudDiagnostics::instance() { namespace particle { +#ifndef SPARK_NO_CLOUD + bool publishKeepaliveInterval(unsigned interval) { if (!interval) { // Get the current interval @@ -1117,4 +1119,6 @@ bool publishKeepaliveInterval(unsigned interval) { return publishEvent(KEEPALIVE_INTERVAL_EVENT, buf); } +#endif // !defined(SPARK_NO_CLOUD) + } // particle