From: Bastian Dehn Date: Sun, 25 Feb 2024 12:04:11 +0000 (+0100) Subject: reload option color set X-Git-Tag: v1.0.0^2~187 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=1625a30c0a86bdb916c1cd3b0722d52d0cb1fe8a;p=sane-kds-s2000w-net.git reload option color set --- diff --git a/src/kds_s2000w_handler_opts.c b/src/kds_s2000w_handler_opts.c index 37828da..4c26bc4 100644 --- a/src/kds_s2000w_handler_opts.c +++ b/src/kds_s2000w_handler_opts.c @@ -262,6 +262,8 @@ void kds_s2000w_handler_set_option(handler* h, int option, void* value, int* inf if (strcmp(str_Value, "Color") == 0) { h->current_metadata->format = 1; h->current_metadata->channels = 3; + h->current_metadata->depth = 8; + *info = RELOAD_OPTIONS; } else { h->current_metadata->format = 0; h->current_metadata->channels = 1;