From 2b9e1c1d48a55d2e12add34b2ba738e7fc598429 Mon Sep 17 00:00:00 2001 From: johannes Date: Thu, 22 Jun 2023 20:29:44 +0200 Subject: [PATCH] comments corrected --- hardwareInterface.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hardwareInterface.py b/hardwareInterface.py index 06ef96c..205bcfc 100644 --- a/hardwareInterface.py +++ b/hardwareInterface.py @@ -17,7 +17,7 @@ if (getConfigValue("digital_output_device")=="beaglebone"): import Adafruit_BBIO.GPIO as GPIO if (getConfigValue("charge_parameter_backend")=="chademo"): - # In case we run on beaglebone, we want to use GPIO ports. + # In case we use the CHAdeMO backend, we want to use CAN import can class hardwareInterface(): @@ -425,7 +425,6 @@ class hardwareInterface(): self.addToTrace("CHAdeMO: Set capacity to %d" % message.data[6]) self.capacity = message.data[6] - #TODO: determine maximum charger current and voltage and also actual current and voltage msg = can.Message(arbitration_id=0x108, data=[ 0, self.maxChargerVoltage & 0xFF, self.maxChargerVoltage >> 8, self.maxChargerCurrent, 0, 0, 0, 0], is_extended_id=False) self.canbus.send(msg) #Report unspecified version 10, this makes our custom implementation send the momentary