74_AutomowerConnect: Common.pm map zones change compare cutting hight to match cutting hight
git-svn-id: https://svn.fhem.de/fhem/trunk@27851 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1682,11 +1682,11 @@ sub AlignArray {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# set cutting height per zone
|
# set cutting height per zone
|
||||||
|
my $cuthi = $hash->{helper}{mower}{attributes}{settings}{cuttingHeight};
|
||||||
if ( AttrVal( $name, 'mapZones', 0 ) && $act =~ /^(MOWING)$/
|
if ( AttrVal( $name, 'mapZones', 0 ) && $act =~ /^(MOWING)$/
|
||||||
&& defined( $hash->{helper}{currentZone} )
|
&& defined( $hash->{helper}{currentZone} )
|
||||||
&& defined( $hash->{helper}{mapZones}{$hash->{helper}{currentZone}}{cuttingHeight} )
|
&& defined( $hash->{helper}{mapZones}{$hash->{helper}{currentZone}}{cuttingHeight} )
|
||||||
&& $hash->{helper}{mapZones}{$hash->{helper}{currentZone}}{cuttingHeight} != $hash->{helper}{mower}{attributes}{settings}{cuttingHeight}
|
&& $hash->{helper}{mapZones}{$hash->{helper}{currentZone}}{cuttingHeight} !~ /$cuthi/
|
||||||
&& ( $hash->{helper}{cuttingHeightLast} + $hash->{helper}{cuttingHeightLatency} ) < scalar gettimeofday() ) {
|
&& ( $hash->{helper}{cuttingHeightLast} + $hash->{helper}{cuttingHeightLatency} ) < scalar gettimeofday() ) {
|
||||||
|
|
||||||
RemoveInternalTimer( $hash, \&setCuttingHeight );
|
RemoveInternalTimer( $hash, \&setCuttingHeight );
|
||||||
|
|||||||
Reference in New Issue
Block a user