Skip to content
Permalink
Browse files

promote DirectByte over Pages mode

  • Loading branch information...
bobjacobsen committed Aug 18, 2019
1 parent a956cfb commit 58ad963bb592276f16915ede502bab9f902a088a
@@ -812,8 +812,8 @@ protected void programmerOpMessage(LocoNetMessage m, int i) {
@Nonnull
public List<ProgrammingMode> getSupportedModes() {
List<ProgrammingMode> ret = new ArrayList<>();
ret.add(ProgrammingMode.PAGEMODE);
ret.add(ProgrammingMode.DIRECTBYTEMODE);
ret.add(ProgrammingMode.PAGEMODE);
ret.add(ProgrammingMode.REGISTERMODE);
ret.add(ProgrammingMode.ADDRESSMODE);
ret.add(csOpSwProgrammingMode);
@@ -665,8 +665,8 @@ public void testReadThroughFacadeFail() throws jmri.ProgrammerException {
public void testGetProgrammingModes() {
List<ProgrammingMode> l = slotmanager.getSupportedModes();
Assert.assertEquals("programming mode list length ok", 5, l.size());
Assert.assertEquals("programming mode 0", ProgrammingMode.PAGEMODE, l.get(0));
Assert.assertEquals("programming mode 1", ProgrammingMode.DIRECTBYTEMODE, l.get(1));
Assert.assertEquals("programming mode 0", ProgrammingMode.DIRECTBYTEMODE, l.get(0));
Assert.assertEquals("programming mode 1", ProgrammingMode.PAGEMODE, l.get(1));
Assert.assertEquals("programming mode 2", ProgrammingMode.REGISTERMODE, l.get(2));
Assert.assertEquals("programming mode 3", ProgrammingMode.ADDRESSMODE, l.get(3));
Assert.assertEquals("programming mode 4", "LOCONETCSOPSWMODE", l.get(4).getStandardName());

0 comments on commit 58ad963

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