2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

00_Neuron.pm: bugfix warning uninitialized index

10_NeuronPin.pm: bugfix setextensions


git-svn-id: https://svn.fhem.de/fhem/trunk@19081 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klausw 2019-03-31 21:55:22 +00:00
parent d55b8fa09b
commit ea9c01aa6b
2 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,7 @@ sub Neuron_Undef(@){
sub Neuron_Set(@) {
my ($hash, $name, $cmd, @args) = @_;
my $sets = $hash->{HELPER}{SETS};
if (index($hash->{HELPER}{SETS}, $cmd) != -1) { # dynamisch erzeugte outputs
if ($hash->{HELPER}{SETS} && index($hash->{HELPER}{SETS}, $cmd) != -1) { # dynamisch erzeugte outputs
my ($dev, $circuit) = (split '_', $cmd, 2);
my $value = (looks_like_number($args[0]) ? $args[0] : $setsP{$args[0]});
if ($hash->{HELPER}{wsKey} && DevIo_IsOpen($hash)) {

View File

@ -8,6 +8,7 @@ package main;
use strict;
use warnings;
use SetExtensions;
my %sets = (
'on' => 1,