Skip to content

Commit

Permalink
isConsistentState() returns true when the state is INTERMEDIATE
Browse files Browse the repository at this point in the history
  • Loading branch information
danielb987 committed Feb 5, 2019
1 parent 1c2826f commit 9b8bbff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion java/src/jmri/Light.java
Expand Up @@ -106,7 +106,9 @@ public interface Light extends DigitalIO, AnalogIO {
/** {@inheritDoc} */
@Override
default public boolean isConsistentState() {
return (getState() == DigitalIO.ON) || (getState() == DigitalIO.OFF);
return (getState() == DigitalIO.ON)
|| (getState() == DigitalIO.OFF)
|| (getState() == INTERMEDIATE);
}

/** {@inheritDoc} */
Expand Down

0 comments on commit 9b8bbff

Please sign in to comment.