phoenix-em-eth: fix meter detection (#10799)
This commit is contained in:
parent
bc8e3a451e
commit
81518caaae
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ func NewPhoenixEMEthFromConfig(other map[string]interface{}) (api.Charger, error
|
|||
)
|
||||
|
||||
// check presence of meter by voltage on l1
|
||||
if b, err := wb.conn.ReadInputRegisters(phxEMEthRegVoltages, 2); err == nil && encoding.Uint32LswFirst(b) > 0 {
|
||||
if b, err := wb.conn.ReadInputRegisters(phxEMEthRegVoltages, 2); err == nil && encoding.Int32LswFirst(b) > 0 {
|
||||
currentPower = wb.currentPower
|
||||
totalEnergy = wb.totalEnergy
|
||||
currents = wb.currents
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue