From 3e08ad51b1889279ce1711467fe8013ab68d5fdd Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 27 Jan 2024 17:59:21 +0100 Subject: [PATCH] change autostart to bool --- src/kds_s2000w_net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index f5cae02..151d2fb 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -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; -- 2.39.5