Compare commits

...

3 Commits

Author SHA1 Message Date
Peli de Halleux
668d814559 merge master 2019-10-31 10:26:50 -07:00
Peli de Halleux
953bf27bc5 logging 2019-10-13 00:05:26 -07:00
Peli de Halleux
d4ee9d2d62 various fixes 2019-10-13 00:01:34 -07:00
4 changed files with 5 additions and 9 deletions

View File

@ -121,10 +121,9 @@ namespace sensors.internal {
powerMM = control.mmap("/dev/lms_power", 2, 0)
devPoller = new Poller(250, () => { return hashDevices(); },
(prev, curr) => {
detectDevices();
});
devPoller = new Poller(500,
() => { return hashDevices(); },
(prev, curr) => { detectDevices(); });
}
export function getActiveSensors(): Sensor[] {
@ -431,11 +430,11 @@ void cUiUpdatePower(void)
constructor(port: number) {
super(port)
this.mode = 0
this.realmode = 0
this.realmode = -1
}
_activated() {
this.realmode = 0
this.realmode = -1
this._setMode(this.mode)
}

View File

@ -3,7 +3,6 @@
namespace pxsim {
export enum ColorSensorMode {
None = -1,
Reflected = 0,
Ambient = 1,
Colors = 2,

View File

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

View File

@ -44,7 +44,6 @@ namespace pxsim {
}
export enum InfraredSensorMode {
None = -1,
Proximity = 0,
Seek = 1,
RemoteControl = 2