no message
This commit is contained in:
@@ -639,12 +639,12 @@ private function WriteByVendorRegistersSingleMode(string $typ, array $cfg, float
|
||||
// sichere Writer
|
||||
$setInt = function(int $varId, int $value): void {
|
||||
if ($varId > 0 && IPS_VariableExists($varId)) {
|
||||
SetValue($varId, $value);
|
||||
RequestAction($varId, $value);
|
||||
}
|
||||
};
|
||||
$setW = function(int $varId, float $w): void {
|
||||
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
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user