74_AMADDevice: fix decode_utf8 call in eval

git-svn-id: https://svn.fhem.de/fhem/trunk@14822 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
CoolTux
2017-07-31 07:53:41 +00:00
parent f139b95da8
commit f25ea2a95e
2 changed files with 3 additions and 2 deletions

View File

@@ -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: 74_AMADDevice: fix decode_utf8 call in eval
- feature: 57_Calendar: reduce memory footprint (forum #74481)
- bugfix: 74_AMADDevice: fix openurl bug
- bugfix: 49_SSCam: "uninitialized value in pattern ..." on fhem start

View File

@@ -54,7 +54,7 @@ eval "use Encode qw(encode encode_utf8);1" or $missingModul .= "Encode ";
eval "use JSON;1" or $missingModul .= "JSON ";
my $modulversion = "4.0.2";
my $modulversion = "4.0.3";
my $flowsetversion = "4.0.0";
@@ -782,7 +782,7 @@ sub AMADDevice_Parse($$) {
my $name = $io_hash->{NAME};
my $decode_json = eval{decode_json(encode_utf8($json))};
my $decode_json = eval{decode_json($json)};
if($@){
Log3 $name, 3, "AMADDevice ($name) - JSON error while request: $@";
return;