2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-15 22:26:04 +00:00

10_CUL_HM:set posetEvent to max 255

git-svn-id: https://svn.fhem.de/fhem/trunk@16838 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2018-06-09 05:15:46 +00:00
parent 7cb493bb27
commit cc6381578f

View File

@ -5945,7 +5945,7 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
my (undef,undef,$cond) = @a;
my $cndNo;
if ($cond =~ m/[+-]?\d+/){
return "condition value:$cond above 200 illegal" if ($cond > 200);
return "condition value:$cond above 255 illegal" if ($cond > 255);
$cndNo = $cond;
}
else{
@ -5969,7 +5969,7 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
}
}
}
return "cond:$cond not allowed. choose one of:[0..200],"
return "cond:$cond not allowed. choose one of:[0..255],"
.join(",",sort @keys)
if (!defined $cndNo);
}