Configurable frame time (default=14ms)

This commit is contained in:
gac-iss
2025-10-07 09:51:49 +02:00
parent e78cb03747
commit e3d34466ff
5 changed files with 23 additions and 14 deletions

View File

@@ -38,8 +38,8 @@ public final class ScientaParametersPanel extends DevicePanel {
if (editing) {
try{
int val_ms = (int) (((Double) value) * 1000);
if ((val_ms % 40) != 0){
throw new IOException("Value must be multiple of 40ms");
if ((val_ms % getDevice().getFrameTimeMs()) != 0){
throw new IOException("Value must be multiple of " + getDevice().getFrameTimeMs() + "ms");
}
} catch (Exception ex) {
showException(ex);