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:
parent
45e9c08e92
commit
f8ddf3306d
@ -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");
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user