update mode selection
This commit is contained in:
parent
ad17191ae2
commit
39b7f99741
@ -136,7 +136,7 @@ namespace sensors {
|
|||||||
//% group="Color Sensor"
|
//% group="Color Sensor"
|
||||||
onLightChanged(mode: LightIntensityMode, condition: LightCondition, handler: () => void) {
|
onLightChanged(mode: LightIntensityMode, condition: LightCondition, handler: () => void) {
|
||||||
control.onEvent(this._id, <number>condition, handler);
|
control.onEvent(this._id, <number>condition, handler);
|
||||||
this.setMode(ColorSensorMode.AmbientLightIntensity)
|
this.setMode(<ColorSensorMode><number>mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user