Skip to content
Permalink
Browse files

handle roster update in NceConsist

  • Loading branch information...
pabender committed Aug 1, 2019
1 parent 05c4a95 commit 97148c8cb9aee6b1979802f5ff326060e0fd1beb
Showing with 5 additions and 1 deletion.
  1. +5 −1 java/src/jmri/jmrix/nce/NceConsist.java
@@ -150,10 +150,14 @@ public synchronized void remove(DccLocoAddress locoAddress) {
}
// send remove loco from consist to NCE command station
removeLocoFromConsist(locoAddress.getNumber(), locoAddress.isLongAddress());
//reset the value in the roster entry for CV19
resetRosterEntryCVValue(locoAddress);

// remove from lists
consistRoster.remove(locoAddress);
consistPosition.remove(locoAddress);
consistDir.remove(locoAddress);
consistList.remove(locoAddress);
consistPosition.remove(locoAddress);
notifyConsistListeners(locoAddress, ConsistListener.OPERATION_SUCCESS);
} else {
log.error("Loco " + locoAddress + " is not part of this consist " + getConsistAddress());

0 comments on commit 97148c8

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