Switch to reflected light when calling threshold (#489)
* fix typo * fixing threshold functions * switch to reflected mode when calling threshold
This commit is contained in:
@ -279,7 +279,7 @@ namespace sensors {
|
||||
//% group="Threshold" blockGap=8 weight=49
|
||||
//% this.fieldEditor="ports"
|
||||
proximityThreshold(condition: InfraredSensorEvent): number {
|
||||
return this._proximityThreshold.threshold(<ThresholdState><number>Light.Dark);
|
||||
return this._proximityThreshold.threshold(<ThresholdState><number>condition);
|
||||
}
|
||||
|
||||
// TODO
|
||||
|
Reference in New Issue
Block a user