From 716538c7580f65c4f136e964c6f858390032962a Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Thu, 5 Feb 2026 10:09:30 +0100 Subject: [PATCH] no message --- Bat_EV_SDL _V2/module.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Bat_EV_SDL _V2/module.php b/Bat_EV_SDL _V2/module.php index a551143..a33b9f5 100644 --- a/Bat_EV_SDL _V2/module.php +++ b/Bat_EV_SDL _V2/module.php @@ -666,8 +666,8 @@ private function WriteByVendorRegistersSingleMode(string $typ, array $cfg, float // GoodWe: nur powerbat_laden if (strpos($t, "goodwe") !== false) { - $setW($varPowerCharge, $chargeW); - $setW($varPowerDisch, 0.0); + $setW($varPowerCharge, (int)$chargeW); + $setW($varPowerDisch, (int)0); return; } @@ -687,8 +687,8 @@ private function WriteByVendorRegistersSingleMode(string $typ, array $cfg, float // GoodWe: Entladen nutzt trotzdem powerbat_laden (immer positiv) if (strpos($t, "goodwe") !== false) { - $setW($varPowerCharge, $dischargeW); - $setW($varPowerDisch, 0.0); + $setW($varPowerCharge, (int)$dischargeW); + $setW($varPowerDisch, (int)0); return; }