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
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 {