Skip to content

Commit

Permalink
Merge pull request #8758 from Pugwash1/LNFix20200603
Browse files Browse the repository at this point in the history
Dont send status update till after Initilization is complete
  • Loading branch information
bobjacobsen committed Jul 1, 2020
2 parents 83d1a53 + aa772ec commit 1da530d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions java/src/jmri/jmrix/loconet/LocoNetThrottle.java
Expand Up @@ -589,10 +589,8 @@ public void setSpeedStepMode(SpeedStepMode Mode) {
| LnConstants.DEC_MODE_128;
}
log.debug("New Slot Mode: {}", LnConstants.DEC_MODE(status));
if (mRefreshTimer != null) // the refresh timer isn't created until
// after initilization. We only want to
// modify the slot after the initilization
// is complete.
if (isInitialized )
// check that the throttle is completely initialized.
{
network.sendLocoNetMessage(slot.writeMode(status));
}
Expand Down

0 comments on commit 1da530d

Please sign in to comment.