2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 14:47:00 +00:00

49_SSCam: V3.2.4, don't retrieve presets during restart if cam is disabled

git-svn-id: https://svn.fhem.de/fhem/trunk@15465 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2017-11-20 08:26:06 +00:00
parent 86d9712aef
commit aef3ca0c6a
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,7 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 49_SSCam: V3.2.4, don't retrieve presets during restart if cam is
disabled
- feature: 98_Hyperion: - new "set binary restart/stop"
- non-blocking for "get configFiles",
"set configFile" and "set binary"

View File

@ -27,6 +27,7 @@
#########################################################################################################################
# Versions History:
#
# 3.2.4 18.11.2017 fix bug don't retrieve getptzlistpreset if cam is disabled
# 3.2.3 08.10.2017 set optimizeParams, get caminfo (simple), minor bugfix, commandref revised
# 3.2.2 03.10.2017 make functions ready to use "SYNO.SurveillanceStation.PTZ" version 5, minor fixes, commandref
# revised
@ -205,7 +206,7 @@ use Time::HiRes;
use HttpUtils;
# no if $] >= 5.017011, warnings => 'experimental';
my $SSCamVersion = "3.2.3";
my $SSCamVersion = "3.2.4";
# Aufbau Errorcode-Hashes (siehe Surveillance Station Web API)
my %SSCam_errauthlist = (
@ -2207,7 +2208,7 @@ sub getptzlistpreset ($) {
my $camname = $hash->{CAMNAME};
my $name = $hash->{NAME};
return if(IsDisabled($name) || ReadingsVal("$name", "Availability", "enabled") =~ /disabled/);
return if(IsDisabled($name));
if (ReadingsVal("$name", "DeviceType", "") ne "PTZ") {
Log3($name, 4, "$name - Retrieval of Presets for $camname can't be executed - $camname is not a PTZ-Camera");