Skip to content

Commit

Permalink
Fix Core build with SPARK_NO_CLOUD
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeuz committed Oct 2, 2019
1 parent ac0c73f commit 69b2ba0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/src/system_cloud_internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,8 @@ CloudDiagnostics* CloudDiagnostics::instance() {

namespace particle {

#ifndef SPARK_NO_CLOUD

bool publishKeepaliveInterval(unsigned interval) {
if (!interval) {
// Get the current interval
Expand All @@ -1117,4 +1119,6 @@ bool publishKeepaliveInterval(unsigned interval) {
return publishEvent(KEEPALIVE_INTERVAL_EVENT, buf);
}

#endif // !defined(SPARK_NO_CLOUD)

} // particle

0 comments on commit 69b2ba0

Please sign in to comment.