From caa3be83070d4d62ed64b9e3c6abdeeaedda1233 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Thu, 15 Apr 2010 12:25:52 +0000 Subject: [PATCH] Delay the resending of a command after an error. --- src/oceanic_veo250.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/oceanic_veo250.c b/src/oceanic_veo250.c index 8ad8ab2..13bdb52 100644 --- a/src/oceanic_veo250.c +++ b/src/oceanic_veo250.c @@ -140,6 +140,9 @@ oceanic_veo250_transfer (oceanic_veo250_device_t *device, const unsigned char co // Abort if the maximum number of retries is reached. if (nretries++ >= MAXRETRIES) return rc; + + // Delay the next attempt. + serial_sleep (100); } // Receive the answer of the dive computer.