Skip to content

Commit 0fb4b24

Browse files
author
Antti Yli-Tokola
authored
Merge pull request #51 from ARMmbed/fix-compilation
Fix compilation if update feature is disabled
2 parents 6431fdc + 8d83517 commit 0fb4b24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,13 @@ int main(void)
187187
}
188188

189189
printf("Register Pelion Device Management Client\n\n");
190+
191+
#ifdef MBED_CLOUD_CLIENT_SUPPORT_UPDATE
190192
cloud_client = new MbedCloudClient(client_registered, client_unregistered, client_error, NULL, update_progress);
193+
#else
194+
cloud_client = new MbedCloudClient(client_registered, client_unregistered, client_error);
195+
#endif // MBED_CLOUD_CLIENT_SUPPORT_UPDATE
196+
191197
cloud_client->add_objects(m2m_obj_list);
192198
cloud_client->setup(network); // cloud_client->setup(NULL); -- https://jira.arm.com/browse/IOTCLT-3114
193199

0 commit comments

Comments
 (0)