mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-26 17:51:45 +01:00
fix setting version rolling
This commit is contained in:
parent
15db0465d5
commit
b958b85d57
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user