fix mico-os uncommited

This commit is contained in:
Your Name
2025-03-08 17:25:54 +08:00
parent 3983df25d3
commit c02678849f
4 changed files with 681 additions and 683 deletions

View File

@@ -331,7 +331,7 @@ static int HttpGetMqttReportFreq(httpd_request_t *req)
OSStatus err = kNoErr;
int buf_size = 97;
char *freq = malloc(buf_size);
sprintf(freq, "%d", &MQTT_REPORT_FREQ);
sprintf(freq, "%d", MQTT_REPORT_FREQ);
send_http(freq, strlen(freq), exit, &err);

View File

@@ -979,7 +979,7 @@ if(!seconds||seconds==0){
seconds=1;
}
HttpPost("/mqtt/report/freq", function (re) {
ShowToast("已设置上报频率,重启后生效!");
ShowToast("已设置上报频率");
}, seconds);
}

File diff suppressed because it is too large Load Diff