genesys: Fix calibration exposure in testing mode

merge-requests/213/head
Povilas Kanapickas 2019-12-08 11:42:30 +02:00
rodzic 791433c895
commit 524c9de1fa
6 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -1640,7 +1640,7 @@ SensorExposure CommandSetGl124::led_calibration(Genesys_Device* dev, const Genes
if (is_testing_mode()) {
dev->interface->test_checkpoint("led_calibration");
scanner_stop_action(*dev);
return { 0, 0, 0 };
return sensor.exposure;
}
sanei_genesys_read_data_from_scanner(dev, line.data(), total_size);

Wyświetl plik

@ -1975,7 +1975,7 @@ SensorExposure CommandSetGl646::led_calibration(Genesys_Device* dev, const Genes
simple_scan(dev, calib_sensor, settings, false, true, false, line, "led_calibration");
if (is_testing_mode()) {
return { 0, 0, 0 };
return calib_sensor.exposure;
}
if (DBG_LEVEL >= DBG_data)

Wyświetl plik

@ -2705,7 +2705,7 @@ SensorExposure CommandSetGl841::led_calibration(Genesys_Device* dev, const Genes
if (is_testing_mode()) {
dev->interface->test_checkpoint("led_calibration");
move_back_home(dev, true);
return { 0, 0, 0 };
return calib_sensor.exposure;
}
sanei_genesys_read_data_from_scanner(dev, line.data(), total_size);

Wyświetl plik

@ -2078,7 +2078,7 @@ SensorExposure CommandSetGl843::led_calibration(Genesys_Device* dev, const Genes
if (is_testing_mode()) {
dev->interface->test_checkpoint("led_calibration");
move_back_home(dev, true);
return { 0, 0, 0 };
return calib_sensor.exposure;
}
auto image = read_unshuffled_image_from_scanner(dev, session,

Wyświetl plik

@ -1313,7 +1313,7 @@ SensorExposure CommandSetGl846::led_calibration(Genesys_Device* dev, const Genes
dev->interface->test_checkpoint("led_calibration");
scanner_stop_action(*dev);
move_back_home(dev, true);
return { 0, 0, 0 };
return sensor.exposure;
}
sanei_genesys_read_data_from_scanner(dev, line.data(), total_size);

Wyświetl plik

@ -1347,7 +1347,7 @@ SensorExposure CommandSetGl847::led_calibration(Genesys_Device* dev, const Genes
dev->interface->test_checkpoint("led_calibration");
scanner_stop_action(*dev);
move_back_home(dev, true);
return { 0, 0, 0 };
return sensor.exposure;
}
sanei_genesys_read_data_from_scanner(dev, line.data(), total_size);