diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2019-07-31 16:59:49 +0200 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2019-07-31 16:59:49 +0200 | 
| commit | 1687222e1b9e74c89cafbb5910e72d8ec7bfd40f (patch) | |
| tree | d78102ce30207c63e7608eeba743efd680c888dc /backend/sm3600-homerun.c | |
| parent | 58912f68c2489bcee787599837447e0d64dfd61a (diff) | |
New upstream version 1.0.28upstream/1.0.28
Diffstat (limited to 'backend/sm3600-homerun.c')
| -rw-r--r-- | backend/sm3600-homerun.c | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/backend/sm3600-homerun.c b/backend/sm3600-homerun.c index fe647ef..b77a76e 100644 --- a/backend/sm3600-homerun.c +++ b/backend/sm3600-homerun.c @@ -67,7 +67,7 @@ typedef enum { ltHome, ltUnknown, ltBed, ltError } TLineType;  static unsigned char auchRegsSingleLine[]={    0x00 /*0x01*/, 0x00 /*0x02*/, 0x3F /*0x03*/, -  0xB4 /*!!0x04!!*/, 0x14 /*!!0x05!!*/, 0,0,  +  0xB4 /*!!0x04!!*/, 0x14 /*!!0x05!!*/, 0,0,    0x00 /*0x08*/, 0x3F /*!!0x09!!*/,    1,0,    0x6D /*0x0C*/, @@ -119,7 +119,7 @@ static TLineType GetLineType(TInstance *this)    RegWrite(this,R_CTL, 1, 0x59);    /* #2496[062.5] */    RegWrite(this,R_CTL, 1, 0xD9);    /* #2497[062.5] */    i=WaitWhileScanning(this,5); if (i) return i; -     +    cchBulk=MAX_PIXEL_PER_SCANLINE;    /*    cchBulk=RegRead(this,R_STAT, 2); @@ -298,7 +298,7 @@ TState DoCalibration(TInstance *this)      case sm3750:      default:        yStart=100;  /* 54 is perimeter */ -      cStripes=MAX_CALIB_STRIPES;   +      cStripes=MAX_CALIB_STRIPES;        cyGap=10;        break;      } /* switch */ @@ -359,7 +359,7 @@ TState DoCalibration(TInstance *this)      this->calibration.achStripeY[i]=(unsigned char)        ((2*(int)auchHanning[i]+auchHanning[i-1]+auchHanning[i+1])/4);  #endif -   +    DoJog(this,-yStart-cStripes*cyGap);    INST_ASSERT();    this->calibration.bCalibrated=true; @@ -496,4 +496,3 @@ TState DoJog(TInstance *this, int nDistance)    usleep(100);    return WaitWhileBusy(this,1000); /* thanks Mattias Ellert */  } - | 
