Skip to content
Permalink
Browse files

DCCLocoAddress check

  • Loading branch information...
icklesteve committed May 29, 2019
1 parent 01bd94c commit 033e0a4685f8a7563f11ae8d380f7ac5a4b07666
Showing with 5 additions and 0 deletions.
  1. +5 −0 java/src/jmri/jmrix/loconet/uhlenbrock/UhlenbrockLnThrottleManager.java
@@ -40,6 +40,11 @@ public UhlenbrockLnThrottleManager(UhlenbrockSystemConnectionMemo memo) {
*/
@Override
public void requestThrottleSetup(LocoAddress address, boolean control) {
if (!(address instanceof DccLocoAddress)){
log.error("{} is not a DCCLocoAddress");
failedThrottleRequest(address, "Address" + address + " is not a DccLocoAddress");
return;
}
slotManager.slotFromLocoAddress(((DccLocoAddress) address).getNumber(), this);

class RetrySetup implements Runnable {

0 comments on commit 033e0a4

Please sign in to comment.
You can’t perform that action at this time.