Commit 4906371d authored by Skye Yu's avatar Skye Yu

fix: add record test api

parent 660d5803
Pipeline #1883 canceled with stages
......@@ -786,13 +786,10 @@ Jensen.prototype.getRecordingFile = function (seconds) {
return this.send(new Command(GET_RECORDING_FILE), seconds);
};
let type = 'x';
Jensen.prototype.recordTestStart = async function (seconds) {
type = parseInt(prompt('请输入测试类型编号,1表示频响,2表示AEC,6表示耳机测试', '6'));
if (isNaN(type)) return;
Jensen.prototype.recordTestStart = async function (type, seconds) {
return this.send(new Command(0xf008).body([type]));
};
Jensen.prototype.recordTestEnd = async function (seconds) {
Jensen.prototype.recordTestEnd = async function (type, seconds) {
return this.send(new Command(0xf009).body([type]));
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment