Skip to content

Commit

Permalink
WiThrottle FastClock ratelistener should only ignore time changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mstevetodd committed Feb 11, 2020
1 parent 729d578 commit 116748e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion java/src/jmri/jmrit/withrottle/FastClockController.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public void propertyChange(java.beans.PropertyChangeEvent e) {
rateListener = new PropertyChangeListener() {
@Override
public void propertyChange(java.beans.PropertyChangeEvent e) {
if (e.getPropertyName().equals("rate")) {
//skip time updates on this listener, only send changes (rate, run, other)
if (!e.getPropertyName().equals("time") && !e.getPropertyName().equals("minutes")) {
setReSyncSetpoint();
sendFastRate();
}
Expand Down

0 comments on commit 116748e

Please sign in to comment.