Modbus: address 0 must be possible (#12082)
Some checks failed
Some checks failed
This commit is contained in:
parent
40321315f8
commit
e215a8836e
1 changed files with 0 additions and 3 deletions
|
|
@ -22,9 +22,6 @@ type Register struct {
|
|||
}
|
||||
|
||||
func (r Register) Error() error {
|
||||
if r.Address == 0 {
|
||||
return errors.New("address is required")
|
||||
}
|
||||
if r.Type == "" {
|
||||
return errors.New("type is required")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue