From 6d097e85572d8e2ebf0a84c954f501417deb19f1 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Tue, 12 May 2026 10:18:20 +0200 Subject: [PATCH] no message --- Bat_EV_SDL_V4/module.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Bat_EV_SDL_V4/module.php b/Bat_EV_SDL_V4/module.php index 38b7708..949df33 100644 --- a/Bat_EV_SDL_V4/module.php +++ b/Bat_EV_SDL_V4/module.php @@ -68,13 +68,12 @@ class Bat_EV_SDL_V4 extends IPSModule $this->BuildBatteryPlan(true); - // Kein automatischer Reset der virtuellen Konten bei ApplyChanges. - // Nur Initialisierung von Zeitstempel/Init-Flag, falls noch nie vorhanden. - if ($this->GetBufferSafe("Int_Init") !== "1") { + // Kein Reset bei ApplyChanges. + // Nur Zeitstempel setzen, falls noch keiner vorhanden ist. + if ($this->GetBufferSafe("Int_LastTs") === "") { $this->SetBuffer("Int_LastTs", (string)microtime(true)); - $this->SetBuffer("Int_Init", "1"); } - + $this->Update(); }