From f8ddf3306d7b846f27cf3355cb288b864e8dd587 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Fri, 7 Dec 2012 10:28:10 +0100 Subject: [PATCH] Remove calls to the version functions from the examples. These functions are already called internally, and there is no need to call them explicitely in the example applications again. --- examples/suunto_d9_test.c | 20 -------------------- examples/suunto_vyper2_test.c | 20 -------------------- 2 files changed, 40 deletions(-) diff --git a/examples/suunto_d9_test.c b/examples/suunto_d9_test.c index d83d1b6..20b88c2 100644 --- a/examples/suunto_d9_test.c +++ b/examples/suunto_d9_test.c @@ -44,16 +44,6 @@ test_dump_sdm (const char* name) return rc; } - message ("suunto_d9_device_version\n"); - unsigned char version[SUUNTO_D9_VERSION_SIZE] = {0}; - rc = suunto_d9_device_version (device, version, sizeof (version)); - if (rc != DC_STATUS_SUCCESS) { - WARNING ("Cannot identify computer."); - dc_device_close (device); - dc_context_free (context); - return rc; - } - message ("dc_device_foreach\n"); rc = dc_device_foreach (device, NULL, NULL); if (rc != DC_STATUS_SUCCESS) { @@ -95,16 +85,6 @@ test_dump_memory (const char* name, const char* filename) return rc; } - message ("suunto_d9_device_version\n"); - unsigned char version[SUUNTO_D9_VERSION_SIZE] = {0}; - rc = suunto_d9_device_version (device, version, sizeof (version)); - if (rc != DC_STATUS_SUCCESS) { - WARNING ("Cannot identify computer."); - dc_device_close (device); - dc_context_free (context); - return rc; - } - dc_buffer_t *buffer = dc_buffer_new (0); message ("dc_device_dump\n"); diff --git a/examples/suunto_vyper2_test.c b/examples/suunto_vyper2_test.c index d515b6d..b7daeb0 100644 --- a/examples/suunto_vyper2_test.c +++ b/examples/suunto_vyper2_test.c @@ -44,16 +44,6 @@ test_dump_sdm (const char* name) return rc; } - message ("suunto_vyper2_device_version\n"); - unsigned char version[SUUNTO_VYPER2_VERSION_SIZE] = {0}; - rc = suunto_vyper2_device_version (device, version, sizeof (version)); - if (rc != DC_STATUS_SUCCESS) { - WARNING ("Cannot identify computer."); - dc_device_close (device); - dc_context_free (context); - return rc; - } - message ("dc_device_foreach\n"); rc = dc_device_foreach (device, NULL, NULL); if (rc != DC_STATUS_SUCCESS) { @@ -95,16 +85,6 @@ test_dump_memory (const char* name, const char* filename) return rc; } - message ("suunto_vyper2_device_version\n"); - unsigned char version[SUUNTO_VYPER2_VERSION_SIZE] = {0}; - rc = suunto_vyper2_device_version (device, version, sizeof (version)); - if (rc != DC_STATUS_SUCCESS) { - WARNING ("Cannot identify computer."); - dc_device_close (device); - dc_context_free (context); - return rc; - } - dc_buffer_t *buffer = dc_buffer_new (0); message ("dc_device_dump\n");