Using now PhyDpi.y as selector for the motor MCLK setting.

Copyright Update.
merge-requests/1/head
Gerhard Jaeger 2005-01-12 11:31:39 +00:00
rodzic 9a365ded1c
commit e5cf1bc989
2 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -7,7 +7,7 @@
* @brief Scanning...
*
* 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:
* - 0.40 - starting version of the USB support
@ -25,6 +25,7 @@
* - 0.47 - no changes
* - 0.48 - minor fixes
* - 0.49 - a_bRegs is now part of the device structure
* - using now PhyDpi.y as selector for the motor MCLK range
* .
* <hr>
* 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;
idx = 0;
for( i = 0; i < _MAX_CLK; i++ ) {
if( pParam->PhyDpi.x <= dpi_ranges[i] )
if( pParam->PhyDpi.y <= dpi_ranges[i] )
break;
idx++;
}

Wyświetl plik

@ -7,7 +7,7 @@
* @brief Calibration routines.
*
* 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:
* - 0.40 - starting version of the USB support
@ -27,6 +27,7 @@
* - 0.48 - added more debug output
* - added usb_AutoWarmup()
* - 0.49 - a_bRegs is now part of the device structure
* - using now PhyDpi.y as selector for the motor MCLK range
* .
* <hr>
* 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 );
idx = 0;
for( i = 0; i < _MAX_CLK; i++ ) {
if( pParam->PhyDpi.x <= dpi_ranges[i] )
if( pParam->PhyDpi.y <= dpi_ranges[i] )
break;
idx++;
}