summaryrefslogtreecommitdiff
path: root/backend/plustek-pp_motor.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-02-12 17:36:29 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-02-12 17:36:29 +0100
commit882fd010527b8d8823f09e19edbed3746265fa08 (patch)
treebe5c7cace6697afc753c152d13ad5145d0884a42 /backend/plustek-pp_motor.c
parent527bedac30eb120915718eb7997e6dacd583512e (diff)
parente0d94cf4d39395df1e2c6bb4d967200298c13881 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'backend/plustek-pp_motor.c')
-rw-r--r--backend/plustek-pp_motor.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/backend/plustek-pp_motor.c b/backend/plustek-pp_motor.c
index ac6d458..b58e92d 100644
--- a/backend/plustek-pp_motor.c
+++ b/backend/plustek-pp_motor.c
@@ -3128,7 +3128,7 @@ _LOC Bool MotorP96AheadToDarkArea( pScanData ps )
if((bDark < 0x80) || (wTotalLastLine==wTL)) {
IOCmdRegisterToScanner( ps, ps->RegMotorControl, 0 );
- return _TRUE;
+ return _TRUE;
}
}
#else
@@ -3216,9 +3216,10 @@ _LOC void MotorP98003BackToHomeSensor( pScanData ps )
MiscStartTimer( &timer, _SECOND * 2 );
while(!(IOGetScanState( ps, _TRUE ) & _SCANSTATE_STOP) &&
- !MiscCheckTimer( &timer ));
+ !MiscCheckTimer( &timer ))
+ ;
- _DODELAY( 1000UL );
+ _DODELAY( 1000UL );
ps->AsicReg.RD_ModeControl = _ModeScan;
@@ -3324,7 +3325,8 @@ _LOC void MotorP98003PositionYProc( pScanData ps, ULong steps)
MiscStartTimer( &timer, _SECOND * 5 );
while(!(IOGetScanState( ps, _TRUE ) & _SCANSTATE_STOP) &&
- (!MiscCheckTimer( &timer )));
+ !MiscCheckTimer( &timer ))
+ ;
_DODELAY( 12 );