Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use register 1000 for enable/disable to support older evse's #380

Merged
merged 14 commits into from
Oct 13, 2020
Prev Previous commit
Next Next commit
wip
  • Loading branch information
andig committed Oct 11, 2020
commit 624af407be417ab7063bbc6ef00d7c8aa5e6dbf1
4 changes: 1 addition & 3 deletions util/modbus/modbus.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ func (mb *Connection) handle(res []byte, err error) ([]byte, error) {

// Delay sets delay so use between subsequent modbus operations
func (mb *Connection) Delay(delay time.Duration) {
if delay > mb.delay {
mb.delay = delay
}
mb.delay = delay
}

// Logger sets logger implementation
Expand Down