Skip to content

Commit

Permalink
fix setting version rolling
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-wilson committed Mar 12, 2024
1 parent 15db046 commit b958b85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/stratum/stratum_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit b958b85

Please sign in to comment.