debbuging
This commit is contained in:
+1
-2
@@ -333,13 +333,12 @@ function setDelay(device &$deviceObject, float $delay, string $unit, string $pro
|
||||
$logLevel = $oldLevel;
|
||||
}
|
||||
|
||||
function removeEvent(device $deviceObject, string $property , $value, int $method = IDLE)
|
||||
function removeEvent(device $deviceObject, string $property , $value)
|
||||
{
|
||||
global $events;
|
||||
$eventKey = searchEvent($deviceObject, $property , $value);
|
||||
if ($eventKey !== false)
|
||||
{
|
||||
if ($method !== null) $events[$eventKey]->device->method = $method;
|
||||
deleteEvent($eventKey);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user