Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update SPhilipsDimmers_commands.php
незначительные правки
  • Loading branch information
Alexandr-logrus committed Mar 3, 2019
1 parent f87d6cf commit faf7aba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/devices/addons/SPhilipsDimmers_commands.php
Expand Up @@ -3,15 +3,15 @@
if ($device_type == 'dimmerph') {
if (preg_match('/' . LANG_DEVICES_PATTERN_TURNON . '/uis', $command)) {
sayReplySafe(LANG_TURNING_ON . ' ' . $device_title . $add_phrase, 2);
$run_code .= "callMethodSafe('$linked_object.turnOn');";
$opposite_code .= "callMethodSafe('$linked_object.turnOff');";
$run_code .= "callMethod('$linked_object.turnOn');";
$opposite_code .= "callMethod('$linked_object.turnOff');";
$processed = 1;
//$reply_confirm = 1;
}
elseif (preg_match('/' . LANG_DEVICES_PATTERN_TURNOFF . '/uis', $command)) {
sayReplySafe(LANG_TURNING_OFF . ' ' . $device_title . $add_phrase, 2);
$run_code .= "callMethodSafe('$linked_object.turnOff');";
$opposite_code .= "callMethodSafe('$linked_object.turnOn');";
$run_code .= "callMethod('$linked_object.turnOff');";
$opposite_code .= "callMethod('$linked_object.turnOn');";
$processed = 1;
//$reply_confirm = 1;
}
Expand Down

0 comments on commit faf7aba

Please sign in to comment.