Ignore timeouts during initialization.
Some Veo devices never respond to the initialization command, but have no problem to continue the communication. Therefore a timeout with no data received is ignored. If there happens to be a real problem, it will be catched when sending one of the other commands afterwards.
This commit is contained in:
parent
8425a22dbc
commit
fbe203993c
@ -179,6 +179,8 @@ oceanic_veo250_init (oceanic_veo250_device_t *device)
|
|||||||
n = serial_read (device->port, answer, sizeof (answer));
|
n = serial_read (device->port, answer, sizeof (answer));
|
||||||
if (n != sizeof (answer)) {
|
if (n != sizeof (answer)) {
|
||||||
WARNING ("Failed to receive the answer.");
|
WARNING ("Failed to receive the answer.");
|
||||||
|
if (n == 0)
|
||||||
|
return DEVICE_STATUS_SUCCESS;
|
||||||
return EXITCODE (n);
|
return EXITCODE (n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user