Whoops missing return

This commit is contained in:
Daniel Ledda
2020-10-31 15:09:59 +01:00
parent d5e9eb31cd
commit 255551bf68

View File

@@ -1,8 +1,8 @@
package main package main
import ( import (
"errors"
"fmt" "fmt"
"github.com/pkg/errors"
"github.com/warthog618/gpio" "github.com/warthog618/gpio"
"math" "math"
"os" "os"
@@ -98,6 +98,7 @@ func storeCycleCountsAsBinarySequence(store *[4]byte, cycles *[80]int) error {
store[i / 8] |= 1 store[i / 8] |= 1
} }
} }
return nil
} }
func cyclesForReading(pin *gpio.Pin, level gpio.Level) int { func cyclesForReading(pin *gpio.Pin, level gpio.Level) int {