Skip to content
Permalink
Browse files

DLS

  • Loading branch information...
bobjacobsen committed Oct 30, 2018
1 parent 244e0b8 commit 4ee54c341265ca3b4378489a70d851bfd4c22ed4
@@ -1420,7 +1420,7 @@ public void printEntryLine(HardcopyWriter w) {
// _owner
thisLine += StringUtil.padString(_owner, colWidth);
colWidth = 10;
startNext += colWidth;

// dateModified (type)
if (dateModified != null) {
DateFormat.getDateTimeInstance().format(dateModified);
@@ -59,10 +59,8 @@ protected void forwardToPort(AbstractMRMessage m, AbstractMRListener reply) {
Runnable r = new XmtNotifier(m, mLastSender, this);
javax.swing.SwingUtilities.invokeLater(r);

// Create the correct concrete class for sending to the hardware
AbstractMRMessage hm = newMessage();

// Encode the message to be sent
// Create the correct concrete class for sending to the hardware and encode the message to be sent
AbstractMRMessage hm;
if (((CanMessage) m).isTranslated()) {
hm = m;
} else {
@@ -554,7 +554,8 @@ private DCCppMessage loadChars() throws java.io.IOException {
log.debug("Found starting < ");
break; // A bit redundant with setting the loop condition true (false)
} else {
char1 = readByteProtected(inpipe);
// drop next character before repeating
readByteProtected(inpipe);
}
}
// Now, suck in the rest of the message...
@@ -104,15 +104,12 @@ public boolean disposeThrottle(jmri.DccThrottle t, jmri.ThrottleListener l) {
i = i + 2;
m.setElement(i++, ' ');
m.addIntAsTwoHex(result[1] & 0xFF, i);
i = i + 2;

} else { // short address
m.setElement(i++, ' ');
m.addIntAsTwoHex(0, i);
i = i + 2;
m.setElement(i++, ' ');
m.addIntAsTwoHex(result[0] & 0xFF, i);
i = i + 2;
}

_memo.getTrafficController().sendEasyDccMessage(m, null);

0 comments on commit 4ee54c3

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