Do not send the quit command during initialization.
This commit is contained in:
parent
5a1658d30e
commit
da684c1fcf
@ -284,9 +284,8 @@ oceanic_veo250_device_open (device_t **out, const char* name)
|
|||||||
// Make sure everything is in a sane state.
|
// Make sure everything is in a sane state.
|
||||||
serial_flush (device->port, SERIAL_QUEUE_BOTH);
|
serial_flush (device->port, SERIAL_QUEUE_BOTH);
|
||||||
|
|
||||||
// Send the init and quit commands.
|
// Initialize the data cable (PPS mode).
|
||||||
oceanic_veo250_init (device);
|
oceanic_veo250_init (device);
|
||||||
oceanic_veo250_quit (device);
|
|
||||||
|
|
||||||
*out = (device_t*) device;
|
*out = (device_t*) device;
|
||||||
|
|
||||||
|
|||||||
@ -277,9 +277,8 @@ oceanic_vtpro_device_open (device_t **out, const char* name)
|
|||||||
// Make sure everything is in a sane state.
|
// Make sure everything is in a sane state.
|
||||||
serial_flush (device->port, SERIAL_QUEUE_BOTH);
|
serial_flush (device->port, SERIAL_QUEUE_BOTH);
|
||||||
|
|
||||||
// Send the init and quit commands.
|
// Initialize the data cable (MOD mode).
|
||||||
oceanic_vtpro_init (device);
|
oceanic_vtpro_init (device);
|
||||||
oceanic_vtpro_quit (device);
|
|
||||||
|
|
||||||
*out = (device_t*) device;
|
*out = (device_t*) device;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user