Minimum step time (default=42ms)

This commit is contained in:
gac-iss
2025-10-23 10:10:28 +02:00
parent e3d34466ff
commit 915026c0be
3 changed files with 25 additions and 11 deletions

View File

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