Whoops missing return
This commit is contained in:
3
main.go
3
main.go
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user