value_object = json_object_object_get(config, "ScanSource");
_write_string_value(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;
- else
- h->current_scan_status->feeder = 0;
+
+ if (strcmp(value, "Automatic") == 0)
+ h->current_scan_status->feeder = 2;
break;
case 3:
return SANE_STATUS_NO_DOCS;
}
- if (h->current_scan_status->feeder
+ if (h->current_scan_status->feeder > 0
&& h->current_scan_status->complete_scanned
&& h->current_scan_status->available_images <= 0) {
kds_s2000w_handler_recreate_session(h);
return SANE_STATUS_GOOD;
}
- if (!h->current_scan_status->feeder
+ if (h->current_scan_status->feeder != 1
&& h->current_scan_status->available_images <= 0) {
kds_s2000w_handler_recreate_session(h);
return SANE_STATUS_GOOD;