Skip to content

Commit

Permalink
spotted write to static
Browse files Browse the repository at this point in the history
  • Loading branch information
silverailscolo committed Aug 13, 2019
1 parent 60d456d commit faa4fca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions java/src/jmri/jmrit/withrottle/FastClockController.java
Expand Up @@ -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);
Expand Down Expand Up @@ -129,7 +129,11 @@ public void sendFastRate() {
}
}
}


private static void updateMinsSetpoint(short newVal) {
updateMinsSetpoint = newVal;
}

private void setReSyncSetpoint() {
updateMinsSetpoint = (short)(fastClock.userGetRate() * UPDATE_MINUTES);
}
Expand Down

0 comments on commit faa4fca

Please sign in to comment.