From 48ba04f2ded300495e5639f5c9c96f0fab568d59 Mon Sep 17 00:00:00 2001 From: johannes Date: Mon, 4 Nov 2024 15:28:34 +0100 Subject: [PATCH] Corrected typo --- hardwareInterface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardwareInterface.py b/hardwareInterface.py index 5f4b7ed..d8a296b 100644 --- a/hardwareInterface.py +++ b/hardwareInterface.py @@ -190,8 +190,8 @@ class hardwareInterface(): self.homeplughandler.sendSpecialMessageToControlThePowerSupply(targetVoltage, targetCurrent) #here we can publish the voltage and current requests received from the PEV side if getConfigValue("charge_parameter_backend") == "mqtt": - self.mqttclient.publish(getConfigValue("mqtt_topic") + "/pev_voltage", str(voltage)) - self.mqttclient.publish(getConfigValue("mqtt_topic") + "/pev_current", str(current)) + self.mqttclient.publish(getConfigValue("mqtt_topic") + "/pev_voltage", str(targetVoltage)) + self.mqttclient.publish(getConfigValue("mqtt_topic") + "/pev_current", str(targetVoltage)) def getInletVoltage(self): # uncomment this line, to take the simulated inlet voltage instead of the really measured