Skip to content

Commit b034fc0

Browse files
committed
Use default address if not configured
1 parent 0def518 commit b034fc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

charger/phoenix-emcp.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ func NewPhoenixEMCPFromConfig(other map[string]interface{}) (api.Charger, error)
3131
URI string
3232
ID uint8
3333
}{
34-
ID: 180, // default
34+
URI: "192.168.0.8:502", // default
35+
ID: 180, // default
3536
}
3637

3738
if err := util.DecodeOther(other, &cc); err != nil {

0 commit comments

Comments
 (0)