From ee87cff7822d266b9a1f1ca56330daf75b1d6dfc Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Fri, 27 Dec 2024 11:27:50 +0100 Subject: [PATCH] add debug info completed --- src/kds_s2000w_net.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index 17b11d3..df81a2d 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -129,17 +129,20 @@ void _sane_kds_s2000w_net_cancel(SANE_Handle handle) kds_s2000w_net_handler_get_current_scan_status(h); if (h->current_scan_status->complete_scanned > 0) { + debug_printf(DEBUG, "scan completed"); reset_handler(h); return; } if (h->read_info->cancel > 0 || h->current_scan_status->available_images <= 0) { + debug_printf(DEBUG, "scan completed - cancel or no availible images"); reset_handler(h); kds_s2000w_handler_recreate_session(h); return; } + debug_printf(DEBUG, "scan canceled"); h->read_info->cancel = 1; kds_s2000w_handler_stop_scan(h); } -- 2.39.5