]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change scan started with bool
authorBastian Dehn <hhaalo@arcor.de>
Sun, 9 Feb 2025 18:42:46 +0000 (19:42 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 9 Feb 2025 18:42:46 +0000 (19:42 +0100)
src/kds_s2000w_handler.c
src/kds_s2000w_handler.h
src/kds_s2000w_net.c

index 5669b6f171892a2be9a465e6be62753dbba9e1db..fc93f235540d8f2a4faf2d6920a2d8d1b8e09fce 100644 (file)
@@ -50,7 +50,7 @@ handler* kds_s2000w_handler_init()
        h->current_scan_status->downloaded_images = 0;
        h->current_scan_status->complete_scanned = false;
        h->current_scan_status->feeder = 1;
-       h->read_info->scan_started = 0;
+       h->read_info->scan_started = false;
        h->read_info->cancel = 0;
        h->read_info->read_size = 0;
        h->image->size = 0;
@@ -94,7 +94,7 @@ void kds_s2000w_handler_reset(handler* h)
        h->current_scan_status->available_images = 0;
        h->current_scan_status->downloaded_images = 0;
        h->current_scan_status->complete_scanned = false;
-       h->read_info->scan_started = 0;
+       h->read_info->scan_started = false;
        h->read_info->cancel = 0;
        h->read_info->read_size = 0;
 }
index cb8a6b04e2e1f8cac428418a7e96fec281c8d99d..0afd72960ff2e3584296d8700bbb71e0350fc04f 100644 (file)
@@ -38,7 +38,7 @@ typedef struct {
 } scanstatus;
 
 typedef struct {
-       uint8_t scan_started;
+       bool scan_started;
        uint8_t cancel;
        uint64_t read_size;
 } readinfo;
index ee59493cc6252511d91dc1f3286847859a5037d3..0e01aa3eef21d5ec34dca65430104982976d0932 100644 (file)
@@ -134,7 +134,7 @@ SANE_Status sane_kds_s2000w_net_start(SANE_Handle handle)
 
        if (!h->read_info->scan_started) {
                h->read_info->cancel = 0;
-               h->read_info->scan_started = 1;
+               h->read_info->scan_started = true;
                kds_s2000w_handler_start_scan(h);
        }