mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +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:
parent
d55b8fa09b
commit
ea9c01aa6b
@ -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)) {
|
||||
|
@ -8,6 +8,7 @@ package main;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use SetExtensions;
|
||||
|
||||
my %sets = (
|
||||
'on' => 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user