From: Bastian Dehn Date: Sun, 25 Feb 2024 10:08:02 +0000 (+0100) Subject: reload params with reset X-Git-Tag: v1.0.0^2~190 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=5126dd6b4790d8981c17449c642ab5d29391e9a6;p=sane-kds-s2000w-net.git reload params with reset --- diff --git a/src/kds_s2000w_handler_opts.c b/src/kds_s2000w_handler_opts.c index a2dc3cc..37828da 100644 --- a/src/kds_s2000w_handler_opts.c +++ b/src/kds_s2000w_handler_opts.c @@ -384,7 +384,11 @@ void kds_s2000w_handler_set_option(handler* h, int option, void* value, int* inf json_object_put(capabilities); capabilities = NULL; - *info = RELOAD_OPTIONS; + h->current_metadata->format = 1; + h->current_metadata->channels = 3; + h->current_metadata->depth = 8; + + *info = RELOAD_OPTIONS | RELOAD_PARAMS; _load_options(h); return; break;