Merge pull request #4046 from IgorA100/patch-122

Use "setMaxFPS(fps)" instead of "streamCommandstreamCommand({command:CMD_MAXFPS, maxfps: fps})" (montage.js)
This commit is contained in:
Isaac Connor
2024-05-28 07:37:33 -04:00
committed by GitHub

View File

@@ -982,10 +982,10 @@ function monitorsSetRate(fps, id=null) {
var currentMonitor = monitors.find((o) => {
return parseInt(o["id"]) === id;
});
currentMonitor.streamCommand({command: CMD_MAXFPS, maxfps: fps});
currentMonitor.setMaxFPS(fps);
} else {
for ( let i = 0, length = monitors.length; i < length; i++ ) {
monitors[i].streamCommand({command: CMD_MAXFPS, maxfps: fps});
monitors[i].setMaxFPS(fps);
}
}
}