From fa225a4a2de6375d16a003700955cbe904dae4e0 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Sat, 31 Oct 2020 15:25:12 +0100 Subject: [PATCH] testing bugs --- main.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index db9a727..9254392 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,6 @@ package main import ( - "errors" "fmt" "github.com/warthog618/gpio" "math" @@ -91,9 +90,9 @@ func storeCycleCountsAsBinarySequence(store *[4]byte, cycles *[80]int) error { for i := 0; i < 40; i++ { lowCycles := cycles[2 * i] highCycles := cycles[2 * i + 1] - if (lowCycles == Timeout) || (highCycles == Timeout) { - return errors.New("Timed out waiting for sensor pulse!") - } + //if (lowCycles == Timeout) || (highCycles == Timeout) { + // return errors.New("Timed out waiting for sensor pulse!") + //} store[i / 8] <<= 1 if highCycles > lowCycles { store[i / 8] |= 1