Skip to content

Commit

Permalink
Update sonarbit.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lionyhw authored Jan 6, 2020
1 parent 77cfacb commit 31f4cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonarbit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 31f4cbe

Please sign in to comment.