Counter::setUpSource(AnalogTrigger): actually set the source.

Previously this created the output but didn't set up the source.

Change-Id: Ifac7ed589358e15bc70ba46ae4a756ce56683a8a
This commit is contained in:
Peter Johnson
2014-10-10 09:15:42 -07:00
parent 8079482820
commit fcc8230dbf

View File

@@ -257,7 +257,7 @@ public class Counter extends SensorBase implements CounterBase,
if (triggerType == null){
throw new NullPointerException("Analog Trigger Type given was null");
}
analogTrigger.createOutput(triggerType);
setUpSource(analogTrigger.createOutput(triggerType));
m_allocatedUpSource = true;
}