Skip to content

Commit

Permalink
API: Change similar / duplicate JSON Key fanSpeed and fanspeed
Browse files Browse the repository at this point in the history
Change fanSpeed to fanSpeedRpm
  • Loading branch information
pixeldoc2000 authored Apr 25, 2024
1 parent 47b0293 commit 6a1c814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/http_server/http_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ static esp_err_t GET_system_info(httpd_req_t * req)
cJSON_AddNumberToObject(root, "power", GLOBAL_STATE->POWER_MANAGEMENT_MODULE.power);
cJSON_AddNumberToObject(root, "voltage", GLOBAL_STATE->POWER_MANAGEMENT_MODULE.voltage);
cJSON_AddNumberToObject(root, "current", GLOBAL_STATE->POWER_MANAGEMENT_MODULE.current);
cJSON_AddNumberToObject(root, "fanSpeed", GLOBAL_STATE->POWER_MANAGEMENT_MODULE.fan_speed);
cJSON_AddNumberToObject(root, "fanSpeedRpm", GLOBAL_STATE->POWER_MANAGEMENT_MODULE.fan_speed);
cJSON_AddNumberToObject(root, "temp", GLOBAL_STATE->POWER_MANAGEMENT_MODULE.chip_temp);
cJSON_AddNumberToObject(root, "hashRate", GLOBAL_STATE->SYSTEM_MODULE.current_hashrate);
cJSON_AddStringToObject(root, "bestDiff", GLOBAL_STATE->SYSTEM_MODULE.best_diff_string);
Expand Down

0 comments on commit 6a1c814

Please sign in to comment.