Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f1b82c7

Browse filesBrowse files
committed
Merge branch 'bugfix/build_fail_if_claiming_enabled' into 'master'
rmaker_core: Fixes build failure when claim config is disabled. See merge request app-frameworks/esp-rainmaker!191
2 parents d3f0e64 + 4517665 commit f1b82c7
Copy full SHA for f1b82c7

File tree

1 file changed

+4
-1
lines changed
Filter options

1 file changed

+4
-1
lines changed

‎components/esp_rainmaker/src/core/esp_rmaker_core.c

Copy file name to clipboardExpand all lines: components/esp_rainmaker/src/core/esp_rmaker_core.c
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,10 @@ static esp_err_t esp_rmaker_init(const esp_rmaker_config_t *config, bool use_cla
264264
ESP_LOGE(TAG, "Failed to initialise MQTT Config. Please perform \"claiming\" using RainMaker CLI.");
265265
return ESP_FAIL;
266266
} else {
267-
if (!esp_rmaker_priv_data->need_claim) {
267+
#ifdef ESP_RMAKER_CLAIM_ENABLED
268+
if (!esp_rmaker_priv_data->need_claim)
269+
#endif /* ESP_RMAKER_CLAIM_ENABLED */
270+
{
268271
if (esp_rmaker_mqtt_init(esp_rmaker_priv_data->mqtt_config) != ESP_OK) {
269272
esp_rmaker_deinit_priv_data(esp_rmaker_priv_data);
270273
esp_rmaker_priv_data = NULL;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.