Return success when trying to close a NULL device.
This commit is contained in:
parent
4a8c15dafe
commit
e67d470c11
@ -97,7 +97,7 @@ int
|
||||
suunto_vyper_close (vyper *device)
|
||||
{
|
||||
if (device == NULL)
|
||||
return SUUNTO_VYPER_ERROR;
|
||||
return SUUNTO_VYPER_SUCCESS;
|
||||
|
||||
// Close the device.
|
||||
if (serial_close (device->port) == -1) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user