]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
remove debug info set and get option
authorBastian Dehn <hhaalo@arcor.de>
Sun, 9 Nov 2025 07:03:46 +0000 (08:03 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 9 Nov 2025 07:03:46 +0000 (08:03 +0100)
src/kds_s2000w_handler_opts.c

index 144de49fb60fb718d9c573204e7b3c3ae9f0295f..06d0276b9c79831e4a6e6c1d714f1842b91e57c4 100644 (file)
@@ -57,7 +57,6 @@ void _kds_s2000w_handler_opts_load_options(handler_t* h)
        uint8_t result = kds_s2000w_client_get_option(h->sessionid, resp);
 
        if (result != 0 || resp->code != 200) {
-               kds_s2000w_debug_printf_int(ERROR, "load options response code", resp->code);
                kds_s2000w_client_response_free(resp);
                resp = NULL;
                return;
@@ -174,14 +173,13 @@ void _kds_s2000w_handler_opts_set_options(handler_t* h)
        json_object_deep_copy(h->scanner_config, &config_value, json_c_shallow_copy_default);
        json_object_object_add(config, CONFIGURATION, config_value);
        const char* json_string = json_object_to_json_string_ext(config, JSON_C_TO_STRING_PLAIN);
+
        response_t* resp = kds_s2000w_client_response_init();
        resp->size = sizeof(char) * strlen(json_string);
        resp->code = 0;
        resp->data = realloc(resp->data, resp->size);
        resp->data = memcpy(resp->data, json_string, resp->size);
        kds_s2000w_client_set_option(h->sessionid, resp);
-       if (resp->code != 200)
-               kds_s2000w_debug_printf_int(ERROR, "set options response code", resp->code);
 
        kds_s2000w_client_response_free(resp);
        resp = NULL;