From 4e0eaa1aa6ecee9ee1818c56287e99176240c775 Mon Sep 17 00:00:00 2001 From: marschap Date: Sun, 5 Jun 2005 14:55:07 +0000 Subject: [PATCH] add compile time option (not in configure.in) to support delays when writing --- server/drivers/CFontz633io.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/drivers/CFontz633io.c b/server/drivers/CFontz633io.c index d58d33d..7275982 100644 --- a/server/drivers/CFontz633io.c +++ b/server/drivers/CFontz633io.c @@ -145,9 +145,13 @@ send_packet(int fd, COMMAND_PACKET *out) out->crc.as_word = get_crc((unsigned char *) out, out->data_length + 2, 0xFFFF); write(fd, out->crc.as_bytes, 2); - /**** TEST STUF ****/ + /**** TEST STUFF ****/ // print_packet(&outgoing_response); +#if defined(CFONTZ633_WRITE_DELAY) && (CFONTZ633_WRITE_DELAY > 0) + usleep(CFONTZ633_WRITE_DELAY); +#endif + /* Every time we send a message, we also check for an incoming one. */ test_packet(fd); }