no message

This commit is contained in:
belevo\mh
2026-02-05 09:53:24 +01:00
parent afc72486b9
commit 11be77f8dd

View File

@@ -639,12 +639,12 @@ private function WriteByVendorRegistersSingleMode(string $typ, array $cfg, float
// sichere Writer // sichere Writer
$setInt = function(int $varId, int $value): void { $setInt = function(int $varId, int $value): void {
if ($varId > 0 && IPS_VariableExists($varId)) { if ($varId > 0 && IPS_VariableExists($varId)) {
SetValue($varId, $value); RequestAction($varId, $value);
} }
}; };
$setW = function(int $varId, float $w): void { $setW = function(int $varId, float $w): void {
if ($varId > 0 && IPS_VariableExists($varId)) { if ($varId > 0 && IPS_VariableExists($varId)) {
SetValue($varId, (int)round(max(0.0, $w), 0)); // ✅ niemals negativ RequestAction($varId, (int)round(max(0.0, $w), 0)); // ✅ niemals negativ
} }
}; };