Wait a small amount of time before sending the command.

Without this delay, the transfer will fail most of the time.
This commit is contained in:
Jef Driesen 2008-07-10 12:25:02 +00:00
parent d12a44c458
commit a5143d8c7c

View File

@ -381,6 +381,10 @@ uwatec_memomouse_device_download (device_t *abstract, unsigned char data[], unsi
command[8] = uwatec_memomouse_checksum (command, 8, 0x00);
uwatec_memomouse_reverse (command, sizeof (command));
// Wait a small amount of time before sending the command.
// Without this delay, the transfer will fail most of the time.
serial_sleep (50);
// Keep send the command to the device,
// until the ACK answer is received.
unsigned char answer = NAK;