Code Style

This commit is contained in:
Marko Oldenburg 2019-04-23 15:26:16 +02:00
parent 9d90420fa9
commit 5766667cad

View File

@ -857,7 +857,13 @@ sub EventProcessingWindowRec($@) {
{
$shutters->setLastDrive('window day closed');
$shutters->setNoOffset(1);
$shutters->setDriveCmd( ($shutters->getLastPos != $shutters->getClosedPos ? $shutters->getLastPos : $shutters->getOpenPos) );
$shutters->setDriveCmd(
(
$shutters->getLastPos != $shutters->getClosedPos
? $shutters->getLastPos
: $shutters->getOpenPos
)
);
}
elsif (not IsDay($shuttersDev)