Skip to content
Permalink
Browse files

Merge pull request #6661 from pabender/CollectingReporters

force LnReporter contents to update on any new message.
  • Loading branch information...
pabender committed Mar 11, 2019
2 parents fc2013a + 36c5d3e commit 5c7f90300c9682f6a56ba7efd136a1f45d84b4a1
Showing with 2 additions and 0 deletions.
  1. +2 −0 java/src/jmri/jmrix/loconet/LnReporter.java
@@ -90,6 +90,7 @@ void transpondingReport(LocoNetMessage l) {
loco = l.getElement(3) * 128 + l.getElement(4);
}

notify(null); // set report to null to make sure listeners update
IdTag idTag = InstanceManager.getDefault(TranspondingTagManager.class).provideIdTag(""+loco);
if(enter) {
idTag.setProperty("entryexit","enter");
@@ -116,6 +117,7 @@ void lissyReport(LocoNetMessage l) {
// get direction
boolean north = ((l.getElement(3) & 0x20) == 0);

notify(null); // set report to null to make sure listeners update
// get loco address
IdTag idTag = InstanceManager.getDefault(TranspondingTagManager.class).provideIdTag(""+loco);
if(north) {

0 comments on commit 5c7f903

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