mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
SMUtils.pm: update to v 1.11.1
git-svn-id: https://svn.fhem.de/fhem/trunk@22873 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
98d92a1c7b
commit
fd7fb62d24
@ -40,7 +40,7 @@ use FHEM::SynoModules::ErrCodes qw(:all); # Erro
|
|||||||
use GPUtils qw( GP_Import GP_Export );
|
use GPUtils qw( GP_Import GP_Export );
|
||||||
use Carp qw(croak carp);
|
use Carp qw(croak carp);
|
||||||
|
|
||||||
use version; our $VERSION = version->declare('1.11.0');
|
use version; our $VERSION = version->declare('1.11.1');
|
||||||
|
|
||||||
use Exporter ('import');
|
use Exporter ('import');
|
||||||
our @EXPORT_OK = qw(
|
our @EXPORT_OK = qw(
|
||||||
@ -566,10 +566,10 @@ sub evaljson {
|
|||||||
else {
|
else {
|
||||||
$success = 0;
|
$success = 0;
|
||||||
|
|
||||||
readingsBeginUpdate ($hash);
|
my $errorcode = "9000";
|
||||||
readingsBulkUpdate ($hash, "Errorcode", "none");
|
my $error = expErrors($hash,$errorcode); # Fehlertext zum Errorcode ermitteln
|
||||||
readingsBulkUpdate ($hash, "Error", "malformed JSON string received");
|
|
||||||
readingsEndUpdate ($hash, 1);
|
setReadingErrorState ($hash, $error, $errorcode);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user