finding a bug
This commit is contained in:
5
main.go
5
main.go
@@ -96,11 +96,6 @@ func cyclesForReading(pin *gpio.Pin, level gpio.Level) int {
|
|||||||
return count
|
return count
|
||||||
}
|
}
|
||||||
|
|
||||||
func readPulsesAsCycles(pin *gpio.Pin) [80]int {
|
|
||||||
|
|
||||||
return cycles
|
|
||||||
}
|
|
||||||
|
|
||||||
func storeCycleCountsAsBinarySequence(cycles *[80]int) ([5]byte, error) {
|
func storeCycleCountsAsBinarySequence(cycles *[80]int) ([5]byte, error) {
|
||||||
data := [5]byte{}
|
data := [5]byte{}
|
||||||
for i := 0; i < 40; i++ {
|
for i := 0; i < 40; i++ {
|
||||||
|
|||||||
Reference in New Issue
Block a user