Configurable frame time (default=14ms)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user