mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 23:06:05 +00:00
EventSpecial has problems with ECMDDevice.
git-svn-id: https://svn.fhem.de/fhem/trunk@1396 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1a409283bf
commit
b287ba0f88
@ -2087,7 +2087,6 @@ EvalSpecials($%)
|
|||||||
# %NAME (same as @) and %TYPE (contains the device type, e.g. FHT)
|
# %NAME (same as @) and %TYPE (contains the device type, e.g. FHT)
|
||||||
# can be used. A single % looses its special meaning if any of these
|
# can be used. A single % looses its special meaning if any of these
|
||||||
# parameters appears in the definition.
|
# parameters appears in the definition.
|
||||||
|
|
||||||
my ($exec, %specials)= @_;
|
my ($exec, %specials)= @_;
|
||||||
$exec = SemicolonEscape($exec);
|
$exec = SemicolonEscape($exec);
|
||||||
|
|
||||||
@ -2095,10 +2094,12 @@ EvalSpecials($%)
|
|||||||
|
|
||||||
# %EVTPART due to HM remote logic
|
# %EVTPART due to HM remote logic
|
||||||
my $idx = 0;
|
my $idx = 0;
|
||||||
|
if(defined($specials{"%EVENT"})) {
|
||||||
foreach my $part (split(" ", $specials{"%EVENT"})) {
|
foreach my $part (split(" ", $specials{"%EVENT"})) {
|
||||||
$specials{"%EVTPART$idx"} = $part;
|
$specials{"%EVTPART$idx"} = $part;
|
||||||
$idx++;
|
$idx++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# perform macro substitution
|
# perform macro substitution
|
||||||
my $extsyntax= 0;
|
my $extsyntax= 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user