AMConnect/Common.pm: remove error display faster after error correction
git-svn-id: https://svn.fhem.de/fhem/trunk@27230 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -711,6 +711,7 @@ sub AlignArray {
|
||||
|
||||
}
|
||||
|
||||
resetLastErrorIfCorrected($hash);
|
||||
$hash->{helper}{newdatasets} = $i;
|
||||
$hash->{helper}{searchpos} = [ dclone( $hash->{helper}{mower}{attributes}{positions}[0] ), dclone( $hash->{helper}{mower}{attributes}{positions}[1] ) ];
|
||||
return undef;
|
||||
@@ -748,7 +749,15 @@ sub isErrorThanPrepare {
|
||||
|
||||
}
|
||||
|
||||
} elsif (!$hash->{helper}{mower}{attributes}{mower}{errorCodeTimestamp} && $hash->{helper}{lasterror}{timestamp} ) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#########################
|
||||
sub resetLastErrorIfCorrected {
|
||||
my ( $hash ) = @_;
|
||||
|
||||
if (!$hash->{helper}{mower}{attributes}{mower}{errorCodeTimestamp} && $hash->{helper}{lasterror}{timestamp} ) {
|
||||
|
||||
$hash->{helper}{lasterror}{positions} = [];
|
||||
$hash->{helper}{lasterror}{timestamp} = 0;
|
||||
@@ -762,7 +771,6 @@ sub isErrorThanPrepare {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#########################
|
||||
sub isGoodActivity {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user