From: Bastian Dehn Date: Wed, 8 Oct 2025 07:16:31 +0000 (+0200) Subject: add debug valid coord X-Git-Tag: v1.1.9^2~1^2~8 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=2a1aa2952d3a6cfe37626f514de26dcb2172f555;p=sane-kds-s2000w-net.git add debug valid coord --- diff --git a/src/kds_s2000w_handler_opts.c b/src/kds_s2000w_handler_opts.c index c6a55c1..565f0fc 100644 --- a/src/kds_s2000w_handler_opts.c +++ b/src/kds_s2000w_handler_opts.c @@ -49,6 +49,11 @@ void _kds_s2000w_handler_opts_set_valid_coord(handler* h, option_descriptor* des if (!valid) return; + kds_s2000w_debug_printf_int(DEBUG, "valid offset x", h->coord->offset_x); + kds_s2000w_debug_printf_int(DEBUG, "valid offset y", h->coord->offset_y); + kds_s2000w_debug_printf_int(DEBUG, "valid width", h->coord->width); + kds_s2000w_debug_printf_int(DEBUG, "valid height", h->coord->height); + json_object* config = json_object_object_get(h->current_scanner_config, "Configuration"); json_object* value_object = json_object_object_get(config, IMAGE_OFFSET_X); json_object_set_int(value_object, h->coord->offset_x);