Skip to content

Commit

Permalink
Merge pull request #1333 from pjonsson/compiledialog-clock
Browse files Browse the repository at this point in the history
AbstractCompileDialog: keep clock interface
  • Loading branch information
nfi authored Sep 15, 2023
2 parents 1cd7b22 + c748161 commit b5d0563
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions java/org/contikios/cooja/dialogs/AbstractCompileDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@

import org.contikios.cooja.Cooja;
import org.contikios.cooja.MoteInterface;
import org.contikios.cooja.interfaces.Clock;
import org.contikios.cooja.interfaces.MoteID;
import org.contikios.cooja.interfaces.Position;
import org.contikios.cooja.mote.BaseContikiMoteType;
Expand Down Expand Up @@ -530,8 +531,10 @@ protected void addMoteInterface(Class<? extends MoteInterface> intfClass, boolea
}
});

/* Always select position and ID interface */
if (Position.class.isAssignableFrom(intfClass) || MoteID.class.isAssignableFrom(intfClass)) {
// Always select clock, ID, and position interfaces.
if (Clock.class.isAssignableFrom(intfClass) ||
MoteID.class.isAssignableFrom(intfClass) ||
Position.class.isAssignableFrom(intfClass)) {
intfCheckBox.setEnabled(false);
intfCheckBox.setSelected(true);
}
Expand Down

0 comments on commit b5d0563

Please sign in to comment.