Commit 1f568672 authored by martin hou's avatar martin hou

feat: 录音中的文件查询增加超时参数和默认值

parent 7f27a5e9
...@@ -226,7 +226,7 @@ declare class Jensen { ...@@ -226,7 +226,7 @@ declare class Jensen {
setNotification: (state: boolean, time?: number) => Promise<ReturnStruct['common']>; setNotification: (state: boolean, time?: number) => Promise<ReturnStruct['common']>;
// 获取录音中的文件信息,当它从null -> non-null -> null转变时就表示已经有一个新的录音产生了 // 获取录音中的文件信息,当它从null -> non-null -> null转变时就表示已经有一个新的录音产生了
getRecordingFile: () => Promise<{ recording: null | string; createTime: string; createDate: string }>; getRecordingFile: (time?: number) => Promise<{ recording: null | string; createTime: string; createDate: string }>;
// 获取内部存储卡信息 // 获取内部存储卡信息
// used:已使用,capacity:总容量(单位为M),status:900表示正常,其它表示异常 // used:已使用,capacity:总容量(单位为M),status:900表示正常,其它表示异常
......
...@@ -1115,7 +1115,7 @@ Jensen.prototype.formatCard = function (seconds) { ...@@ -1115,7 +1115,7 @@ Jensen.prototype.formatCard = function (seconds) {
Jensen.prototype.getRecordingFile = function (seconds) { Jensen.prototype.getRecordingFile = function (seconds) {
if ((this.model == 'hidock-h1' || this.model == 'hidock-h1e') && this.versionNumber < 327733) return null; if ((this.model == 'hidock-h1' || this.model == 'hidock-h1e') && this.versionNumber < 327733) return null;
return this.send(new Command(GET_RECORDING_FILE), seconds); return this.send(new Command(GET_RECORDING_FILE), seconds || 0.5);
}; };
Jensen.prototype.recordTestStart = async function (type, seconds) { Jensen.prototype.recordTestStart = async function (type, seconds) {
......
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