mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
ENIGMA2: improved return values for channel command
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@9054 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f2ef64d28d
commit
c7ca0dd328
@ -626,9 +626,16 @@ sub ENIGMA2_Set($@) {
|
|||||||
$result = ENIGMA2_SendCommand( $hash, "remotecontrol",
|
$result = ENIGMA2_SendCommand( $hash, "remotecontrol",
|
||||||
"command=" . ENIGMA2_GetRemotecontrolCommand("OK") );
|
"command=" . ENIGMA2_GetRemotecontrolCommand("OK") );
|
||||||
}
|
}
|
||||||
|
elsif ( m/^\d+$/ && ( $_ <= 0 || $_ >= 10000 ) ) {
|
||||||
|
return "Numeric channel addressing '" . $_
|
||||||
|
. "' needs to be a number between 1 and 9999.";
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
return "Argument " . $_
|
return
|
||||||
. " is not a valid integer between 0 and 9999 or servicereference is invalid";
|
"'"
|
||||||
|
. $_
|
||||||
|
. "' does not seem to be a valid channel. Known channels: "
|
||||||
|
. $channels;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user