_kds_s2000w_handler_opts_write_string_value(value_object, value);
break;
case 41:
- value_object = json_object_object_get(config, "DocumentFeederTimeout");
+ value_object = json_object_object_get(config, "MaxDocumentLength");
_kds_s2000w_handler_opts_write_int_value(value_object, value);
break;
case 42:
_kds_s2000w_handler_opts_write_string_value(value_object, value);
break;
case 45:
- value_object = json_object_object_get(config, "MaxDocumentLength");
+ value_object = json_object_object_get(config, "DocumentFeederTimeout");
_kds_s2000w_handler_opts_write_int_value(value_object, value);
break;
case 46:
_kds_s2000w_handler_opts_write_string_value_to_json(value_object, value);
break;
case 41:
- value_object = json_object_object_get(config, "DocumentFeederTimeout");
+ value_object = json_object_object_get(config, "MaxDocumentLength");
_kds_s2000w_handler_opts_write_int_value_to_json(value_object, value);
break;
case 42:
_kds_s2000w_handler_opts_write_string_value_to_json(value_object, value);
break;
case 45:
- value_object = json_object_object_get(config, "MaxDocumentLength");
+ value_object = json_object_object_get(config, "DocumentFeederTimeout");
_kds_s2000w_handler_opts_write_int_value_to_json(value_object, value);
break;
case 46:
SANE_Option_Descriptor descriptor = {
"max-document-length",
- "Max document length",
- "Max document length",
+ "Max Document Length",
+ "Max Document Length",
SANE_TYPE_INT,
SANE_UNIT_NONE,
sizeof(SANE_Int),
descriptor_array[38] = _kds_s2000w_option_descriptor_image_border();
descriptor_array[39] = _kds_s2000w_option_descriptor_jpeg_quality();
descriptor_array[40] = _kds_s2000w_option_descriptor_feeder_group();
- descriptor_array[41] = _kds_s2000w_option_descriptor_document_feeder_timeout();
+ descriptor_array[41] = _kds_s2000w_option_descriptor_max_document_length();
descriptor_array[42] = _kds_s2000w_option_descriptor_multifeed_response();
descriptor_array[43] = _kds_s2000w_option_descriptor_transport_handling();
descriptor_array[44] = _kds_s2000w_option_descriptor_multifeed_sensitivity();
- descriptor_array[45] = _kds_s2000w_option_descriptor_max_document_length();
+ descriptor_array[45] = _kds_s2000w_option_descriptor_document_feeder_timeout();
descriptor_array[46] = _kds_s2000w_option_descriptor_document_feeder_timeout_response();
}
sane_kds_s2000w_net_control_option(h, 41, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(value, 2);
+ assert_int_equal(value, 140);
kds_s2000w_handler_free(h);
h = NULL;
sane_kds_s2000w_net_control_option(h, 45, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(value, 140);
+ assert_int_equal(value, 2);
kds_s2000w_handler_free(h);
h = NULL;
{
SANE_Option_Descriptor* option = kds_s2000w_option_descriptors_get(41);
- assert_string_equal("document-feeder-timeout", option->name);
- assert_string_equal("Document feeder timeout", option->title);
- assert_string_equal("Document feeder timeout", option->desc);
+
+ assert_string_equal("max-document-length", option->name);
+ assert_string_equal("Max Document Length", option->title);
+ assert_string_equal("Max Document Length", option->desc);
assert_int_equal(SANE_TYPE_INT, option->type);
assert_int_equal(SANE_UNIT_NONE, option->unit);
assert_int_equal(sizeof(SANE_Int), option->size);
assert_int_equal(SANE_CAP_SOFT_DETECT | SANE_CAP_SOFT_SELECT | SANE_CAP_ADVANCED, option->cap);
assert_int_equal(SANE_CONSTRAINT_RANGE, option->constraint_type);
- assert_int_equal(option->constraint.range->min, 0);
- assert_int_equal(option->constraint.range->max, 120);
+ assert_int_equal(option->constraint.range->min, 25);
+ assert_int_equal(option->constraint.range->max, 400);
assert_int_equal(option->constraint.range->quant, 1);
}
{
SANE_Option_Descriptor* option = kds_s2000w_option_descriptors_get(45);
- assert_string_equal("max-document-length", option->name);
- assert_string_equal("Max document length", option->title);
- assert_string_equal("Max document length", option->desc);
+ assert_string_equal("document-feeder-timeout", option->name);
+ assert_string_equal("Document feeder timeout", option->title);
+ assert_string_equal("Document feeder timeout", option->desc);
assert_int_equal(SANE_TYPE_INT, option->type);
assert_int_equal(SANE_UNIT_NONE, option->unit);
assert_int_equal(sizeof(SANE_Int), option->size);
assert_int_equal(SANE_CAP_SOFT_DETECT | SANE_CAP_SOFT_SELECT | SANE_CAP_ADVANCED, option->cap);
assert_int_equal(SANE_CONSTRAINT_RANGE, option->constraint_type);
- assert_int_equal(option->constraint.range->min, 25);
- assert_int_equal(option->constraint.range->max, 400);
+ assert_int_equal(option->constraint.range->min, 0);
+ assert_int_equal(option->constraint.range->max, 120);
assert_int_equal(option->constraint.range->quant, 1);
}