From 255551bf68b92a3cfbc1bd843d99174ff5034a6c Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Sat, 31 Oct 2020 15:09:59 +0100 Subject: [PATCH] Whoops missing return --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index c6d3e1c..0b80d1d 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,8 @@ package main import ( + "errors" "fmt" - "github.com/pkg/errors" "github.com/warthog618/gpio" "math" "os" @@ -98,6 +98,7 @@ func storeCycleCountsAsBinarySequence(store *[4]byte, cycles *[80]int) error { store[i / 8] |= 1 } } + return nil } func cyclesForReading(pin *gpio.Pin, level gpio.Level) int {