Skip to content

Commit e1cd986

Browse files
committed
Fix Core build with SPARK_NO_CLOUD
1 parent 3c8b4e4 commit e1cd986

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

system/src/system_cloud_internal.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,8 @@ CloudDiagnostics* CloudDiagnostics::instance() {
11211121

11221122
namespace particle {
11231123

1124+
#ifndef SPARK_NO_CLOUD
1125+
11241126
bool publishKeepaliveInterval(unsigned interval) {
11251127
if (!interval) {
11261128
// Get the current interval
@@ -1138,4 +1140,6 @@ bool publishKeepaliveInterval(unsigned interval) {
11381140
return publishEvent(KEEPALIVE_INTERVAL_EVENT, buf);
11391141
}
11401142

1143+
#endif // !defined(SPARK_NO_CLOUD)
1144+
11411145
} // particle

0 commit comments

Comments
 (0)