SMUtils.pm: update to version 1.11.1

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22874 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-09-28 16:42:36 +00:00
parent 8987a1e275
commit 2d0c7e430a

View File

@ -889,11 +889,11 @@ sub setReadingErrorState {
my $error = shift;
my $errcode = shift // "none";
readingsBeginUpdate ($hash);
readingsBulkUpdateIfChanged ($hash, "Error", $error);
readingsBulkUpdateIfChanged ($hash, "Errorcode", $errcode);
readingsBulkUpdate ($hash, "state", "Error");
readingsEndUpdate ($hash,1);
readingsBeginUpdate($hash);
readingsBulkUpdate ($hash, "Error", $error);
readingsBulkUpdate ($hash, "Errorcode", $errcode);
readingsBulkUpdate ($hash, "state", "Error");
readingsEndUpdate ($hash,1);
return;
}