fix port bug
This commit is contained in:
1 parent
6879961297
commit
22c31c57df
1 file changed
+1
-1
@@ -231,7 +231,7 @@ namespace pxsim.visuals {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case NodeType.InfraredSensor: {
|
case NodeType.InfraredSensor: {
|
||||||
const state = ev3board().getInputNodes()[0] as InfraredSensorNode;
|
const state = ev3board().getInputNodes()[port] as InfraredSensorNode;
|
||||||
if (state.getMode() == InfraredSensorMode.Proximity)
|
if (state.getMode() == InfraredSensorMode.Proximity)
|
||||||
view = new ProximitySliderControl(this.element, this.defs, state, port);
|
view = new ProximitySliderControl(this.element, this.defs, state, port);
|
||||||
else if (state.getMode() == InfraredSensorMode.RemoteControl)
|
else if (state.getMode() == InfraredSensorMode.RemoteControl)
|
||||||
|
|||||||
Reference in new issue
Block a user