From b958b85d57066c5cbec6243715176b7aa31d016c Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 11 Mar 2024 20:37:49 -0400 Subject: [PATCH] fix setting version rolling --- components/stratum/stratum_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/stratum/stratum_api.c b/components/stratum/stratum_api.c index fde5e5d7b..1fdd33cd8 100644 --- a/components/stratum/stratum_api.c +++ b/components/stratum/stratum_api.c @@ -318,8 +318,8 @@ void STRATUM_V1_configure_version_rolling(int socket, uint32_t * version_mask) cJSON * version_rolling_enabled = cJSON_GetObjectItem(result, "version-rolling"); if (cJSON_IsBool(version_rolling_enabled) && cJSON_IsTrue(version_rolling_enabled)) { cJSON * mask = cJSON_GetObjectItem(result, "version-rolling.mask"); - uint32_t version_mask = strtoul(mask->valuestring, NULL, 16); - ESP_LOGI(TAG, "Set version mask: %08lx", version_mask); + *version_mask = strtoul(mask->valuestring, NULL, 16); + ESP_LOGI(TAG, "Set version mask: %08lx", *version_mask); } }else{ printf("configure_version result null\n");