fix buf in wiggle Fn
This commit is contained in:
@@ -1607,13 +1607,13 @@ sub wiggle($$) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ( $shutters->getShuttersPosCmdValueNegate ) {
|
if ( $shutters->getShuttersPosCmdValueNegate ) {
|
||||||
if ( $shutters->getStatus >= $shutters->getOpenPos / 2 ) {
|
if ( $shutters->getStatus >= $shutters->getClosedPos / 2 ) {
|
||||||
$shutters->setDriveCmd(
|
$shutters->setDriveCmd(
|
||||||
$shutters->getStatus + $shutters->getWiggleValue );
|
$shutters->getStatus - $shutters->getWiggleValue );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$shutters->setDriveCmd(
|
$shutters->setDriveCmd(
|
||||||
$shutters->getStatus - $shutters->getWiggleValue );
|
$shutters->getStatus + $shutters->getWiggleValue );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user