Skip to content

Commit

Permalink
Merge pull request #170 from pixeldoc2000/patch-1
Browse files Browse the repository at this point in the history
API: System Info change similar / duplicate JSON Key fanSpeed and fanspeed
  • Loading branch information
WantClue authored Apr 27, 2024
2 parents 47b0293 + 6a1c814 commit 4359500
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 4359500

Please sign in to comment.