diff --git a/fhem/CHANGED b/fhem/CHANGED index fe4ff25c2..7162747da 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. + - feature: AutomowerConnect:remove error display faster after error correction - change: 50_TelegramBot: new reading msgDate and corrections - feature: 72_FRITZBOX: Attr. enableWanInfo -> enableWLANneighbors Attr. wlanNeighborsPrefix diff --git a/fhem/lib/FHEM/Devices/AMConnect/Common.pm b/fhem/lib/FHEM/Devices/AMConnect/Common.pm index 5beba5bda..2b36b3e93 100644 --- a/fhem/lib/FHEM/Devices/AMConnect/Common.pm +++ b/fhem/lib/FHEM/Devices/AMConnect/Common.pm @@ -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 {