Commit 0402787d authored by martin hou's avatar martin hou

fix: 增加Live模式的识别以及对GET_SETTINGS的屏蔽

parent d18cdf56
......@@ -278,7 +278,7 @@ function Jensen(log, conn) {
}
this.isLiveMode = function() {
return lastCommand == REALTIME_TRANSFER;
return lastCommand == REALTIME_TRANSFER || lastCommand == REALTIME_CONTROL;
}
this.setUSBDevice = function (dev) {
......@@ -1247,6 +1247,7 @@ Jensen.prototype.getSettings = async function (seconds) {
return { autoRecord: false, autoPlay: false };
}
if (this.isLiveMode()) return null;
if (this.isBusy()) return null;
return this.send(new Command(GET_SETTINGS), 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