]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add debug valid coord
authorBastian Dehn <hhaalo@arcor.de>
Wed, 8 Oct 2025 07:16:31 +0000 (09:16 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 8 Oct 2025 07:16:31 +0000 (09:16 +0200)
src/kds_s2000w_handler_opts.c

index c6a55c1b03a8f5f998d6e63658a5a3d72afaa6eb..565f0fc0809338063e9b3ae4da05a307f17a0a9b 100644 (file)
@@ -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);