uint8_t profile;
} program_config;
-// sanei use strdup it must be free static variable
+/* sanei use strdup it must be free static variable */
extern char* sanei_config_get_paths(void);
char* kds_s2000w_config_read(const char* filename);
#define SPACE 0x0a
#define DEVICE_NAME "kds_s2000w_net"
+#define ATTEMPT 30
uint32_t _kds_s2000w_handler_find_first_data_byte(imagedata* image)
{
if (h == NULL)
return;
- // sanei use strdup it must be free static variable
+ /* sanei use strdup it must be free static variable */
char* config_dir = sanei_config_get_paths();
free(config_dir);
config_dir = NULL;
_kds_s2000w_handler_load_config(h);
kds_s2000w_debug_printf_version(INFO, DEVICE_NAME, MAJOR, MINOR, PATCH);
- // status code 408 waking up repeat open session
+ /* status code 408 request timeout waking up repeat open session */
response* resp = NULL;
uint8_t result = 0;
- for (uint32_t i = 0; i < 30; i++) {
+ for (uint32_t i = 0; i < ATTEMPT; i++) {
kds_s2000w_client_response_free(resp);
resp = NULL;
resp = kds_s2000w_client_response_init();
sessionJson = NULL;
kds_s2000w_debug_printf_long(INFO, "SessionId", h->sessionid);
- // set old config parameters
+ /* set old config parameters */
kds_s2000w_client_response_free(resp);
resp = NULL;
const char* json_string = json_object_to_json_string_ext(h->current_scanner_config, JSON_C_TO_STRING_PLAIN);