Multiple sensors 2 (#877)

* Fixed -1 mode in libs

* Deleted todo
This commit is contained in:
Max 2019-08-28 02:34:55 +03:00 committed by Peli de Halleux
parent cfaa4ae3ef
commit 5bd4aed0e1
4 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,5 @@
const enum ColorSensorMode {
None = -1,
None = 0,
//% block="reflected light intensity"
ReflectedLightIntensity = 0,
//% block="ambient light intensity"

View File

@ -212,7 +212,6 @@ namespace sensors.internal {
_activated() {
this.realmode = 0
// uartReset(this.port) // TODO is it ever needed?
this._setMode(this.mode)
}

View File

@ -1,5 +1,5 @@
const enum GyroSensorMode {
None = -1,
None = 0,
Angle = 0,
Rate = 1,
}

View File

@ -1,5 +1,5 @@
const enum InfraredSensorMode {
None = -1,
None = 0,
Proximity = 0,
Seek = 1,
RemoteControl = 2,