remove WARMING_UP_STATUS usage

merge-requests/1/head
Stphane Voltz 2009-08-02 21:27:27 +02:00
rodzic 7f45993f26
commit cb59301448
1 zmienionych plików z 4 dodań i 16 usunięć

Wyświetl plik

@ -1177,10 +1177,7 @@ static void test_scan(SANE_Handle device)
check(MSG, 0, "TEST: scan byte per byte - %s", display_scan_parameters(device));
test_parameters(device, &params);
do {
status = sane_start (device);
}
while (status == SANE_STATUS_WARMING_UP);
status = sane_start (device);
rc = check(ERR, (status == SANE_STATUS_GOOD),
"cannot start the scan (%s)", sane_strstatus (status));
if (!rc) goto the_end;
@ -1286,10 +1283,7 @@ static void test_scan(SANE_Handle device)
*/
check(MSG, 0, "TEST: partial scan - %s", display_scan_parameters(device));
do {
status = sane_start (device);
}
while (status == SANE_STATUS_WARMING_UP);
status = sane_start (device);
rc = check(ERR, (status == SANE_STATUS_GOOD),
"cannot start the scan (%s)", sane_strstatus (status));
if (!rc) goto the_end;
@ -1326,10 +1320,7 @@ static void test_scan(SANE_Handle device)
check(ERR, (status != SANE_STATUS_GOOD),
"it is possible to sane_read outside a scan");
do {
status = sane_start (device);
}
while (status == SANE_STATUS_WARMING_UP);
status = sane_start (device);
rc = check(ERR, (status == SANE_STATUS_GOOD),
"cannot start the scan (%s)", sane_strstatus (status));
if (!rc) goto the_end;
@ -1413,10 +1404,7 @@ static void test_scan(SANE_Handle device)
test_parameters(device, &params);
do {
status = sane_start (device);
}
while (status == SANE_STATUS_WARMING_UP);
status = sane_start (device);
rc = check(ERR, (status == SANE_STATUS_GOOD),
"cannot start the scan (%s)", sane_strstatus (status));
if (!rc) goto the_end;