Skip to content

Commit

Permalink
Merge pull request #97 from reef-pi/GH-2082
Browse files Browse the repository at this point in the history
allow 0 as pin numbers in esp32
  • Loading branch information
ranjib authored Oct 21, 2023
2 parents 402e9b4 + f5075e7 commit e13db33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp32/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (f *factory) ValidateParameters(parameters map[string]interface{}) (bool, m
failure := fmt.Sprint(c, " is not an integer. ", parameters[cap2string(c)], " was received")
failures[cap2string(c)] = append(failures[cap2string(c)], failure)
}
if val <= 0 {
if val < 0 {
failures[cap2string(c)] = append(failures[cap2string(c)], fmt.Sprint(c, " pin count should be above zero. Provided:%d", val))
}
}
Expand Down

0 comments on commit e13db33

Please sign in to comment.