fixed input length
This commit is contained in:
2
main.go
2
main.go
@@ -86,7 +86,7 @@ func readDataFromDHT(pin *gpio.Pin) ([4]byte, error) {
|
||||
return receivedInput, nil
|
||||
}
|
||||
|
||||
func storeCycleCountsAsBinarySequence(store *[4]byte, cycles *[80]int) error {
|
||||
func storeCycleCountsAsBinarySequence(store *[5]byte, cycles *[80]int) error {
|
||||
for i := 0; i < 40; i++ {
|
||||
lowCycles := cycles[2 * i]
|
||||
highCycles := cycles[2 * i + 1]
|
||||
|
||||
Reference in New Issue
Block a user