2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

10_ZWave.pm: fix "set ZWDongle addNode onSec"

git-svn-id: https://svn.fhem.de/fhem/trunk@11112 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-03-22 16:10:59 +00:00
parent 50373ba5eb
commit cdfda2e6fd

View File

@ -3733,12 +3733,13 @@ ZWave_Parse($$@)
my $dh = $modules{ZWave}{defptr}{"$homeId $1"};
return "" if(!$dh);
my $addSecure = $iodev->{addSecure}; # addNode off deletes it
AnalyzeCommand(undef, "set $ioName addNode off")
if($cmd eq 'ZW_ADD_NODE_TO_NETWORK');
ZWave_wakeupTimer($dh, 1) if(ZWave_isWakeUp($dh));
if($iodev->{addSecure}) {
if($addSecure) {
return "" if (ZWave_secIncludeStart($dh, $iodev) == 1);
}
return ZWave_execInits($dh, 0);