From 32f524ddd8bd30fe8180ff64e52b3f1e80079afb Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Thu, 30 Nov 2017 09:48:43 -0800 Subject: [PATCH] fixing build --- libs/core/ir.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/core/ir.ts b/libs/core/ir.ts index 5235876a..31af128a 100644 --- a/libs/core/ir.ts +++ b/libs/core/ir.ts @@ -155,8 +155,8 @@ namespace sensors { return mapButton(this.getNumber(NumberFormat.UInt8LE, this.channel)); else if (this.mode == IrSensorMode.Proximity) { const d = this.getNumber(NumberFormat.UInt16LE, 0) & 0x0fff; - return d < this.proximityThreshold ? UltrasonicSensorEvent.ObjectNear - : d > this.proximityThreshold + 5 ? UltrasonicSensorEvent.ObjectDetected + return d < this.proximityThreshold ? InfraredSensorEvent.ObjectNear + : d > this.proximityThreshold + 5 ? InfraredSensorEvent.ObjectDetected : 0; } return 0