kopia lustrzana https://gitlab.com/sane-project/backends
genesys: Fix calibration exposure in testing mode
rodzic
791433c895
commit
524c9de1fa
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue