From 31f4cbe9011e030e07a45fe97288a78c5e390496 Mon Sep 17 00:00:00 2001 From: Lionkk Date: Mon, 6 Jan 2020 15:17:23 +0800 Subject: [PATCH] Update sonarbit.ts --- sonarbit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonarbit.ts b/sonarbit.ts index b881e85..01ca8a3 100644 --- a/sonarbit.ts +++ b/sonarbit.ts @@ -41,7 +41,7 @@ namespace sonarbit { let d = pins.pulseIn(pin, PulseValue.High, 25000) // 8 / 340 = let distance = d * 9 / 6 / 58 - if (distance > 4000) { + if (distance > 400) { distance = 0 }