spelling fixes for hpsj5s backend

merge-requests/518/head
Peter Marschall 2020-08-29 08:17:09 +02:00
rodzic 33f413e790
commit bbf7d068ed
2 zmienionych plików z 16 dodań i 16 usunięć

Wyświetl plik

@ -106,7 +106,7 @@ static SANE_Option_Descriptor sod[] = {
{NULL} /*No constraints required */
}
,
{ /*Width of scaned area */
{ /*Width of scanned area */
"width",
"Width",
"Width of area to scan",
@ -115,7 +115,7 @@ static SANE_Option_Descriptor sod[] = {
sizeof (SANE_Word),
SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT,
SANE_CONSTRAINT_RANGE,
{NULL} /*Range constrain setted in sane_init */
{NULL} /*Range constraint set in sane_init */
}
,
{ /*Resolution for scan */
@ -127,13 +127,13 @@ static SANE_Option_Descriptor sod[] = {
sizeof (SANE_Word),
SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT,
SANE_CONSTRAINT_WORD_LIST,
{NULL} /*Word list constrain setted in sane_init */
{NULL} /*Word list constraint set in sane_init */
}
};
static SANE_Parameters parms;
/*Recalculate Lenght in dependace of resolution*/
/*Recalculate Length in dependence of resolution*/
static SANE_Word
LengthForRes (SANE_Word Resolution, SANE_Word Length)
{
@ -223,7 +223,7 @@ sane_exit (void)
scanner_d = -1;
}
/*Free alocated ports information: */
/*Free allocated ports information: */
ieee1284_free_ports (&pl);
DBG (2, "sane_exit\n");
@ -386,7 +386,7 @@ sane_control_option (SANE_Handle handle, SANE_Int option,
case SANE_ACTION_GET_VALUE:
*((SANE_Word *) value) = wWidth;
return SANE_STATUS_GOOD;
case SANE_ACTION_SET_VALUE: /*info should be setted */
case SANE_ACTION_SET_VALUE: /*info should be set */
wWidth = *((SANE_Word *) value);
if (info != NULL)
*info = SANE_INFO_RELOAD_PARAMS;
@ -400,7 +400,7 @@ sane_control_option (SANE_Handle handle, SANE_Int option,
case SANE_ACTION_GET_VALUE:
*((SANE_Word *) value) = wResolution;
return SANE_STATUS_GOOD;
case SANE_ACTION_SET_VALUE: /*info should be setted */
case SANE_ACTION_SET_VALUE: /*info should be set */
wResolution = *((SANE_Word *) value);
if (info != NULL)
*info = 0;
@ -455,7 +455,7 @@ sane_start (SANE_Handle handle)
bCalibration = GetCalibration ();
if (bLastCalibration - bCalibration > 16)
{ /*Lamp is not warm enouth */
{ /*Lamp is not warm enough */
DBG (1, "sane_start: warming lamp for 30 sec.\n");
for (i = 0; i < 30; i++)
sleep (1);
@ -472,7 +472,7 @@ sane_start (SANE_Handle handle)
/*Turn on indicator and prepare engine. */
SwitchHardwareState (FLAGS_HW_INDICATOR_OFF | FLAGS_HW_MOTOR_READY, 1);
/*Feed paper */
if (PaperFeed (LINES_TO_FEED) == 0) /*Feed only for fixel lenght. Change it */
if (PaperFeed (LINES_TO_FEED) == 0) /*Feed only for fixel length. Change it */
{
DBG (1, "sane_start: paper feed failed.");
SwitchHardwareState (FLAGS_HW_INDICATOR_OFF | FLAGS_HW_MOTOR_READY, 0);
@ -512,7 +512,7 @@ sane_read (SANE_Handle handle, SANE_Byte * data,
}
/*While end of paper sheet was not reached */
/*Wait for scaned line ready */
/*Wait for scanned line ready */
timeout = 0;
while (((bFuncResult = CallFunctionWithRetVal (0xB2)) & 0x20) == 0)
{
@ -794,7 +794,7 @@ TransferScanParameters (enumColorDepth enColor, SANE_Word wResolution,
break;
case GrayScale:
case TrueColor:
CallFunctionWithParameter (0x90, 0); /*Not suppoted correctly. FIX ME!!! */
CallFunctionWithParameter (0x90, 0); /*Not supported correctly. FIX ME!!! */
break;
};
CallFunctionWithParameter (0xA1, 2);
@ -882,7 +882,7 @@ TurnOffPaperPulling ()
}
/*
Returns avarage value of scaned row.
Returns average value of scanned row.
While paper not loaded this is base "white point".
*/
static SANE_Byte
@ -1140,7 +1140,7 @@ CalibrateScanElements ()
CallFunctionWithParameter (0x91, arSpeeds[Index]);
/*waiting for scaned line... */
/*waiting for scanned line... */
timeout = 0;
do
{
@ -1205,7 +1205,7 @@ CalibrateScanElements ()
CallFunctionWithParameter (0x91, CurrentSpeed2);
usleep(10);
/*waiting for scaned line... */
/*waiting for scanned line... */
for(j = 0; j < 5; j++)
{
timeout = 0;

Wyświetl plik

@ -10,7 +10,7 @@
#define ADDRESS_RESULT 0x20 /*Here we get result */
/*Scanner functions (not all - some of them I cann't identify)*/
/*Scanner functions (not all - some of them I can't identify)*/
#define FUNCTION_SETUP_HARDWARE 0xA0
/*Scanner hardware control flags:*/
@ -83,7 +83,7 @@ static SANE_Byte CallFunctionWithRetVal (SANE_Byte Function);
static SANE_Byte ReadDataByte (void);
static void ReadDataBlock (SANE_Byte * Buffer, int lenght);
static void ReadDataBlock (SANE_Byte * Buffer, int length);
/*Daisy chaining API: (should be moved to ieee1284 library in future)*/