From 5589770f305efcf566bfd3ae01d1ae5c6a705f4c Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Tue, 19 Jan 2010 14:57:06 +0000 Subject: [PATCH] Add a small delay before sending the version command. Trying to send the version command immediately after the initialization of the data cable doesn't work very well. Adding a small delay before sending the version commands turns out to be much more reliable. --- src/oceanic_veo250.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/oceanic_veo250.c b/src/oceanic_veo250.c index 50150bd..2380c33 100644 --- a/src/oceanic_veo250.c +++ b/src/oceanic_veo250.c @@ -273,6 +273,9 @@ oceanic_veo250_device_open (device_t **out, const char* name) // Initialize the data cable (PPS mode). oceanic_veo250_init (device); + // Delay the sending of the version command. + serial_sleep (100); + // Switch the device from surface mode into download mode. Before sending // this command, the device needs to be in PC mode (manually activated by // the user), or already in download mode.