Delay the resending of a command after an error.

This commit is contained in:
Jef Driesen 2010-04-15 12:25:52 +00:00
parent a734f40604
commit caa3be8307

View File

@ -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.