Skip to content

Commit

Permalink
allow 0 as pin numbers in esp32
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjib committed Oct 21, 2023
1 parent 402e9b4 commit f5075e7
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 f5075e7

Please sign in to comment.