]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change autostart to bool
authorBastian Dehn <hhaalo@arcor.de>
Sat, 27 Jan 2024 16:59:21 +0000 (17:59 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 27 Jan 2024 16:59:21 +0000 (17:59 +0100)
src/kds_s2000w_net.c

index f5cae0233d9d26a01f5b6d24eab6ba880499c78b..151d2fb8041066b0a898d2a30f681a48de2d7bec 100644 (file)
@@ -145,7 +145,7 @@ const SANE_Option_Descriptor* _sane_kds_s2000w_net_get_option_descriptor(
                        option_descriptors[option].name = "autostart";
                        option_descriptors[option].title = "autostart";
                        option_descriptors[option].desc = "autostart";
-                       option_descriptors[option].cap = SANE_CAP_SOFT_DETECT;
+                       option_descriptors[option].cap = SANE_CAP_SOFT_DETECT | SANE_CAP_SOFT_SELECT;
                        option_descriptors[option].constraint_type = SANE_CONSTRAINT_NONE;
                        option_descriptors[option].constraint.string_list = NULL;
                        break;
@@ -294,7 +294,6 @@ const SANE_Option_Descriptor* _sane_kds_s2000w_net_get_option_descriptor(
        switch (option) {
                case 0:
                case 1:
-               case 5:
                case 7:
                case 11:
                case 12:
@@ -322,6 +321,7 @@ const SANE_Option_Descriptor* _sane_kds_s2000w_net_get_option_descriptor(
                        option_descriptors[option].size = sizeof(SANE_String) * 50;
                        break;
                case 4:
+               case 5:
                        option_descriptors[option].type = SANE_TYPE_BOOL;
                        option_descriptors[option].size = sizeof(SANE_Bool);
                        break;