more code cleanup

This commit is contained in:
minjaesong
2025-09-17 01:24:05 +09:00
parent 89e8fc39ce
commit 9652143d93
4 changed files with 54 additions and 48 deletions

View File

@@ -444,7 +444,7 @@ function updateDataRateBin(rate) {
}
}
function getVideoRate(rate) {
function getVideoRate() {
let baseRate = videoRateBin.reduce((a, c) => a + c, 0)
let mult = fps / videoRateBin.length
return baseRate * mult
@@ -766,7 +766,7 @@ try {
}
}
catch (e) {
printerrln(`TEV ${colorSpace} decode error: ${e}`)
serial.printerr(`TEV ${colorSpace} decode error: ${e}`)
errorlevel = 1
}
finally {