summaryrefslogtreecommitdiff
path: root/backend/sm3600-color.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-03-30 21:30:45 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-03-30 21:30:45 +0200
commitee770c2346eb37e0dcb8b6cf3eaacf3d8efd6bbc (patch)
tree58f05092be1a17a939e861f8cadcda1b6ca2ecef /backend/sm3600-color.c
parent0da9e21872802cfc6e975b1ebaf9efb9e5934d84 (diff)
parentfef76e17ed4c607ea73b81279f9ef1d7121be900 (diff)
Merge branch 'release/experimental/1.0.29-1_experimental1'experimental/1.0.29-1_experimental1
Diffstat (limited to 'backend/sm3600-color.c')
-rw-r--r--backend/sm3600-color.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/backend/sm3600-color.c b/backend/sm3600-color.c
index 9b3c540..2e42ada 100644
--- a/backend/sm3600-color.c
+++ b/backend/sm3600-color.c
@@ -171,7 +171,7 @@ TState StartScanColor(TInstance *this)
this->state.cyTotalPath =
this->param.y/2-(2*this->state.ySensorSkew)*600/this->param.res;
DoJog(this,this->state.cyTotalPath); INST_ASSERT();
- this->state.cyTotalPath +=
+ this->state.cyTotalPath +=
(this->state.cyPixel+2*this->state.ySensorSkew)
*600/this->param.res; /* for jogging back */
@@ -214,7 +214,7 @@ TState StartScanColor(TInstance *this)
RegWrite(this,R_SLEN, 2,
this->state.cyWindow+
(2*this->state.ySensorSkew)*600/this->param.res);
- this->state.szOrder=ORDER_BRG;
+ this->state.szOrder=ORDER_BRG;
RegWrite(this,R_CCAL, 3, this->calibration.rgbBias); INST_ASSERT(); /* 0xBBGGRR */
switch (this->param.res)
{
@@ -294,7 +294,7 @@ TState StartScanColor(TInstance *this)
}
/* calculate and prepare intermediate line transfer buffer */
-
+
this->state.cchLineOut=3*this->state.cxPixel;
this->state.pchLineOut = malloc(this->state.cchLineOut);
if (!this->state.pchLineOut)
@@ -310,4 +310,3 @@ TState StartScanColor(TInstance *this)
this->state.bScanning = true;
return SANE_STATUS_GOOD;
}
-