Skip to content

Commit 252b47c

Browse files
committed
esp_rmaker_params: Fixed an issue with esp_rmaker_param_update_and_notify()
Wrong flags were getting modified, thereby causing the param update publish message to get skipped after sending the notification message.
1 parent 841d59c commit 252b47c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_rainmaker/src/core/esp_rmaker_param.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ static esp_err_t esp_rmaker_allocate_and_populate_params(uint8_t flags, bool res
230230

231231
static esp_err_t esp_rmaker_report_param_internal(uint8_t flags)
232232
{
233-
esp_err_t err = esp_rmaker_allocate_and_populate_params(RMAKER_PARAM_FLAG_VALUE_CHANGE, true);
233+
esp_err_t err = esp_rmaker_allocate_and_populate_params(flags, true);
234234
if (err == ESP_OK) {
235235
/* Just checking if there are indeed any params to report by comparing with a decent enough
236236
* length as even the smallest possible data, Eg. '{"d":{"p":0}}' will be > 10 bytes.

0 commit comments

Comments
 (0)