mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-07-07 16:40:00 +02:00
fix setting version rolling
This commit is contained in:
@ -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");
|
cJSON * version_rolling_enabled = cJSON_GetObjectItem(result, "version-rolling");
|
||||||
if (cJSON_IsBool(version_rolling_enabled) && cJSON_IsTrue(version_rolling_enabled)) {
|
if (cJSON_IsBool(version_rolling_enabled) && cJSON_IsTrue(version_rolling_enabled)) {
|
||||||
cJSON * mask = cJSON_GetObjectItem(result, "version-rolling.mask");
|
cJSON * mask = cJSON_GetObjectItem(result, "version-rolling.mask");
|
||||||
uint32_t version_mask = strtoul(mask->valuestring, NULL, 16);
|
*version_mask = strtoul(mask->valuestring, NULL, 16);
|
||||||
ESP_LOGI(TAG, "Set version mask: %08lx", version_mask);
|
ESP_LOGI(TAG, "Set version mask: %08lx", *version_mask);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
printf("configure_version result null\n");
|
printf("configure_version result null\n");
|
||||||
|
Reference in New Issue
Block a user