kopia lustrzana https://gitlab.com/sane-project/backends
Using now PhyDpi.y as selector for the motor MCLK setting.
Copyright Update.merge-requests/1/head
rodzic
9a365ded1c
commit
e5cf1bc989
|
@ -7,7 +7,7 @@
|
||||||
* @brief Scanning...
|
* @brief Scanning...
|
||||||
*
|
*
|
||||||
* Based on sources acquired from Plustek Inc.<br>
|
* Based on sources acquired from Plustek Inc.<br>
|
||||||
* Copyright (C) 2001-2004 Gerhard Jaeger <gerhard@gjaeger.de>
|
* Copyright (C) 2001-2005 Gerhard Jaeger <gerhard@gjaeger.de>
|
||||||
*
|
*
|
||||||
* History:
|
* History:
|
||||||
* - 0.40 - starting version of the USB support
|
* - 0.40 - starting version of the USB support
|
||||||
|
@ -25,6 +25,7 @@
|
||||||
* - 0.47 - no changes
|
* - 0.47 - no changes
|
||||||
* - 0.48 - minor fixes
|
* - 0.48 - minor fixes
|
||||||
* - 0.49 - a_bRegs is now part of the device structure
|
* - 0.49 - a_bRegs is now part of the device structure
|
||||||
|
* - using now PhyDpi.y as selector for the motor MCLK range
|
||||||
* .
|
* .
|
||||||
* <hr>
|
* <hr>
|
||||||
* This file is part of the SANE package.
|
* This file is part of the SANE package.
|
||||||
|
@ -800,7 +801,7 @@ static void usb_GetMotorParam( Plustek_Device *dev, pScanParam pParam )
|
||||||
md = clk->motor_sets;
|
md = clk->motor_sets;
|
||||||
idx = 0;
|
idx = 0;
|
||||||
for( i = 0; i < _MAX_CLK; i++ ) {
|
for( i = 0; i < _MAX_CLK; i++ ) {
|
||||||
if( pParam->PhyDpi.x <= dpi_ranges[i] )
|
if( pParam->PhyDpi.y <= dpi_ranges[i] )
|
||||||
break;
|
break;
|
||||||
idx++;
|
idx++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* @brief Calibration routines.
|
* @brief Calibration routines.
|
||||||
*
|
*
|
||||||
* Based on sources acquired from Plustek Inc.<br>
|
* Based on sources acquired from Plustek Inc.<br>
|
||||||
* Copyright (C) 2001-2004 Gerhard Jaeger <gerhard@gjaeger.de>
|
* Copyright (C) 2001-2005 Gerhard Jaeger <gerhard@gjaeger.de>
|
||||||
*
|
*
|
||||||
* History:
|
* History:
|
||||||
* - 0.40 - starting version of the USB support
|
* - 0.40 - starting version of the USB support
|
||||||
|
@ -27,6 +27,7 @@
|
||||||
* - 0.48 - added more debug output
|
* - 0.48 - added more debug output
|
||||||
* - added usb_AutoWarmup()
|
* - added usb_AutoWarmup()
|
||||||
* - 0.49 - a_bRegs is now part of the device structure
|
* - 0.49 - a_bRegs is now part of the device structure
|
||||||
|
* - using now PhyDpi.y as selector for the motor MCLK range
|
||||||
* .
|
* .
|
||||||
* <hr>
|
* <hr>
|
||||||
* This file is part of the SANE package.
|
* This file is part of the SANE package.
|
||||||
|
@ -197,7 +198,7 @@ static void usb_SetMCLK( Plustek_Device *dev, pScanParam pParam )
|
||||||
clk = usb_GetMotorSet( hw->motorModel );
|
clk = usb_GetMotorSet( hw->motorModel );
|
||||||
idx = 0;
|
idx = 0;
|
||||||
for( i = 0; i < _MAX_CLK; i++ ) {
|
for( i = 0; i < _MAX_CLK; i++ ) {
|
||||||
if( pParam->PhyDpi.x <= dpi_ranges[i] )
|
if( pParam->PhyDpi.y <= dpi_ranges[i] )
|
||||||
break;
|
break;
|
||||||
idx++;
|
idx++;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue