From faa4fca5c59c5c41b544f90eae9a0fa28b0a6955 Mon Sep 17 00:00:00 2001 From: Egbert Broerse Date: Tue, 13 Aug 2019 21:58:51 +0200 Subject: [PATCH] spotted write to static --- java/src/jmri/jmrit/withrottle/FastClockController.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/java/src/jmri/jmrit/withrottle/FastClockController.java b/java/src/jmri/jmrit/withrottle/FastClockController.java index a207508a0de..3a9e8776abe 100644 --- a/java/src/jmri/jmrit/withrottle/FastClockController.java +++ b/java/src/jmri/jmrit/withrottle/FastClockController.java @@ -50,7 +50,7 @@ public void propertyChange(java.beans.PropertyChangeEvent e) { isValid = true; - updateMinsSetpoint = (short)(fastClock.userGetRate() * UPDATE_MINUTES); + updateMinsSetpoint((short)(fastClock.userGetRate() * UPDATE_MINUTES)); setReSyncSetpoint(); // request callback to update time fastClock.addMinuteChangeListener(minuteListener); @@ -129,7 +129,11 @@ public void sendFastRate() { } } } - + + private static void updateMinsSetpoint(short newVal) { + updateMinsSetpoint = newVal; + } + private void setReSyncSetpoint() { updateMinsSetpoint = (short)(fastClock.userGetRate() * UPDATE_MINUTES); }