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.
This commit is contained in:
Jef Driesen 2012-12-07 10:28:10 +01:00
parent 45e9c08e92
commit f8ddf3306d
2 changed files with 0 additions and 40 deletions

View File

@ -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");

View File

@ -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");