]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
fix scan source set
authorBastian Dehn <hhaalo@arcor.de>
Wed, 8 Oct 2025 16:57:30 +0000 (18:57 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 8 Oct 2025 16:57:30 +0000 (18:57 +0200)
src/kds_s2000w_handler_opts.c

index f9692e406bae342c1e2c69e9f5ecabb9d5e9c1f0..de45a418030781d0c3ba1e0849ad2600c5705349 100644 (file)
@@ -517,7 +517,7 @@ void kds_s2000w_handler_opts_set_option(handler* h, uint32_t option, void* value
                && strcmp(descriptor->config_name, IMAGE_HEIGHT) != 0)
                _kds_s2000w_handler_opts_write_value_to_json(value_object, descriptor->descriptor->type, value);
 
-       if (strcmp(descriptor->config_name, COLOR_MODE) == 0) {
+       if (strcmp(descriptor->config_name, SCAN_SOURCE) == 0) {
                if (strcmp(value, "Flatbed") == 0)
                        h->current_scan_status->feeder = Flatbed;