]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change all feeder modes by get options
authorBastian Dehn <hhaalo@arcor.de>
Sat, 20 Apr 2024 07:27:46 +0000 (09:27 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 20 Apr 2024 07:27:46 +0000 (09:27 +0200)
src/kds_s2000w_handler_opts.c

index 27315dedb8fcebd4855f479cb664d48a3c985390..e2fdb8955f859393331541a3dd6c6aad304b904c 100644 (file)
@@ -202,6 +202,16 @@ void kds_s2000w_handler_set_option(handler* h, int option, void* value, int* inf
                case 2:
                        value_object = json_object_object_get(config, "ScanSource");
                        _write_string_value_to_json(value_object, value);
+
+                       if (strcmp(value, "Flatbed") == 0)
+                               h->current_scan_status->feeder = 0;
+
+                       if (strcmp(value, "DocumentFeeder") == 0)
+                               h->current_scan_status->feeder = 1;
+
+                       if (strcmp(value, "Automatic") == 0)
+                               h->current_scan_status->feeder = 2;
+
                        break;
                case 3:
                        value_object = json_object_object_get(config, "ColorMode");