if (!valid)
return;
+ kds_s2000w_debug_printf_int(DEBUG, "valid offset x", h->coord->offset_x);
+ kds_s2000w_debug_printf_int(DEBUG, "valid offset y", h->coord->offset_y);
+ kds_s2000w_debug_printf_int(DEBUG, "valid width", h->coord->width);
+ kds_s2000w_debug_printf_int(DEBUG, "valid height", h->coord->height);
+
json_object* config = json_object_object_get(h->current_scanner_config, "Configuration");
json_object* value_object = json_object_object_get(config, IMAGE_OFFSET_X);
json_object_set_int(value_object, h->coord->offset_x);