测试图表可以跳动

This commit is contained in:
zogodo
2019-10-10 23:14:32 +08:00
parent 470a7af3ee
commit bb3ea7ae0d
6 changed files with 27 additions and 45 deletions

View File

@@ -109,6 +109,7 @@ static int HttpGetPowerInfo(httpd_request_t *req)
char* powers = GetPowerRecord(idx);
sprintf(power_info_json, POWER_INFO_JSON, power_record.idx, PW_NUM, powers);
power_record.idx++; //test
send_http(power_info_json, strlen(power_info_json), exit, &err);
exit:
return err;
@@ -118,7 +119,7 @@ static int HttpGetWifiConfig(httpd_request_t *req)
{
OSStatus err = kNoErr;
const unsigned char* status = GetSocketStatus();
send_http(status, strlen(status), exit, &err);
send_http(status, strlen((char*)status), exit, &err);
exit:
return err;
}