Skip to content

Commit

Permalink
change response name
Browse files Browse the repository at this point in the history
Signed-off-by: ygelfand <[email protected]>
  • Loading branch information
ygelfand committed Feb 20, 2024
1 parent a7390aa commit f3270f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/api/strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ func parseStrings(c *powerwall.DeviceControllerResponse) map[string]interface{}
strings[fmt.Sprintf("B%s_Current", idx)] = inv.PVACLogging.PVACPVCurrentB
strings[fmt.Sprintf("C%s_Current", idx)] = inv.PVACLogging.PVACPVCurrentC
strings[fmt.Sprintf("D%s_Current", idx)] = inv.PVACLogging.PVACPVCurrentD
strings[fmt.Sprintf("A%s_MeasuredVoltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageA
strings[fmt.Sprintf("B%s_MeasuredVoltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageB
strings[fmt.Sprintf("C%s_MeasuredVoltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageC
strings[fmt.Sprintf("D%s_MeasuredVoltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageD
strings[fmt.Sprintf("A%s_Voltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageA
strings[fmt.Sprintf("B%s_Voltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageB
strings[fmt.Sprintf("C%s_Voltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageC
strings[fmt.Sprintf("D%s_Voltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageD
strings[fmt.Sprintf("A%s_Power", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageA * inv.PVACLogging.PVACPVCurrentA
strings[fmt.Sprintf("B%s_Power", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageB * inv.PVACLogging.PVACPVCurrentB
strings[fmt.Sprintf("C%s_Power", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageC * inv.PVACLogging.PVACPVCurrentC
Expand Down

0 comments on commit f3270f3

Please sign in to comment.