chore: fix Amperfied modbus settings

This commit is contained in:
andig 2024-02-05 12:13:25 +01:00
parent 113ba95363
commit 507a0eb4d7

View file

@ -61,8 +61,8 @@ func init() {
// NewAmperfiedFromConfig creates a Amperfied charger from generic config
func NewAmperfiedFromConfig(other map[string]interface{}) (api.Charger, error) {
cc := struct {
modbus.TcpSettings
Phases1p3p bool
modbus.TcpSettings `mapstructure:",squash"`
Phases1p3p bool
}{
TcpSettings: modbus.TcpSettings{
ID: 255,