From e985f36587852aa412541939d3ff19b3f56712f1 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Sat, 31 Oct 2020 16:36:42 +0100 Subject: [PATCH] finding a bug --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4463a92..b2ae072 100644 --- a/main.go +++ b/main.go @@ -104,8 +104,8 @@ func storeCycleCountsAsBinarySequence(cycles *[80]int) ([5]byte, error) { for i := 0; i < 40; i++ { lowCycles := cycles[2 * i] highCycles := cycles[2 * i + 1] + fmt.Println(lowCycles, highCycles) if (lowCycles == Timeout) || (highCycles == Timeout) { - fmt.Println(lowCycles, highCycles) //return [5]byte{}, errors.New("timed out waiting for sensor pulse") } data[i / 8] <<= 1