From 39b7f99741e358aa2f0f594f0f7b42fdf21cc3ab Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Thu, 30 Nov 2017 08:20:00 -0800 Subject: [PATCH] update mode selection --- libs/color-sensor/color.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/color-sensor/color.ts b/libs/color-sensor/color.ts index c6f0bdb5..bd9e7fcb 100644 --- a/libs/color-sensor/color.ts +++ b/libs/color-sensor/color.ts @@ -136,7 +136,7 @@ namespace sensors { //% group="Color Sensor" onLightChanged(mode: LightIntensityMode, condition: LightCondition, handler: () => void) { control.onEvent(this._id, condition, handler); - this.setMode(ColorSensorMode.AmbientLightIntensity) + this.setMode(mode) } /**