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 28, 2019
1 parent 3c8b4e4 commit e1cd986
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 @@ -1121,6 +1121,8 @@ CloudDiagnostics* CloudDiagnostics::instance() {

namespace particle {

#ifndef SPARK_NO_CLOUD

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

#endif // !defined(SPARK_NO_CLOUD)

} // particle

0 comments on commit e1cd986

Please sign in to comment.