From 192fcdd6518c38cfe75d5f310214b41404308421 Mon Sep 17 00:00:00 2001 From: nasseeder1 <> Date: Tue, 9 Feb 2016 21:15:25 +0000 Subject: [PATCH] 49_SSCAM: "goAbsPTZ" may be unavailable on Windows-systems git-svn-id: https://svn.fhem.de/fhem/trunk@10783 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/49_SSCam.pm | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index dba751cae..efaa5ae09 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # 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: "goAbsPTZ" may be unavailable on Windows-systems - feature 49_SSCAM: added function "move" for continuous PTZ action - feature: 02_RSS: continue image update sequence after error (HTML) - feature: 98_rssFeed: Possibility to modfy feed data via a custom function. diff --git a/fhem/FHEM/49_SSCam.pm b/fhem/FHEM/49_SSCam.pm index ce2ff9dd0..1dd738892 100644 --- a/fhem/FHEM/49_SSCam.pm +++ b/fhem/FHEM/49_SSCam.pm @@ -27,6 +27,7 @@ ########################################################################################################## # Versions History: # +# 1.12.1 09.02.2016 bugfix: "goAbsPTZ" may be unavailable on Windows-systems # 1.12 08.02.2016 added function "move" for continuous PTZ action # 1.11.1 07.02.2016 entries with loglevel "2" reviewed, changed to loglevel "3" # 1.11 05.02.2016 added function "goPreset" and "goAbsPTZ" to control the move of PTZ lense @@ -227,7 +228,7 @@ sub SSCam_Set { "enable ". "disable ". ((ReadingsVal("$name", "DeviceType", "Camera") eq "PTZ") ? "goPreset:".ReadingsVal("$name", "Presets", "")." " : ""). - ((ReadingsVal("$name", "CapPTZAbs", "false") eq "true") ? "goAbsPTZ"." " : ""). + ((ReadingsVal("$name", "CapPTZAbs", "false")) ? "goAbsPTZ"." " : ""). ((ReadingsVal("$name", "CapPTZDirections", "0") > 0) ? "move"." " : ""); @@ -811,7 +812,7 @@ sub doptzaction ($) { &printlog($hash,$logstr,"1"); return; } - if ($hash->{HELPER}{PTZACTION} eq "goabsptz" && ReadingsVal("$name", "CapPTZAbs", "false") ne "true") { + if ($hash->{HELPER}{PTZACTION} eq "goabsptz" && !ReadingsVal("$name", "CapPTZAbs", "false")) { $logstr = "ERROR - Operation \"$hash->{HELPER}{PTZACTION}\" is only possible if camera supports absolute PTZ action - please compare with device Reading \"CapPTZAbs\"" ; &printlog($hash,$logstr,"1"); return;