From bde9f87649e19984363ed6033a9f358b76082602 Mon Sep 17 00:00:00 2001 From: Thomas Albers Raviola Date: Mon, 28 Aug 2023 23:07:36 +0200 Subject: Split cmd_write --- serial.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'serial.c') diff --git a/serial.c b/serial.c index 82a5abd..2da7766 100644 --- a/serial.c +++ b/serial.c @@ -207,8 +207,8 @@ read_buf(int fd, size_t len, void *_buf) write_ack(fd, NACK); } - /* Wait 2 ms between attempts */ - usleep(2000); + /* Wait 200 ms between attempts */ + // usleep(1000000); } err = ERR_NACK; @@ -253,8 +253,8 @@ write_buf(int fd, size_t len, const void *_buf) if (err != NACK) goto error; - /* Wait 2 ms between attempts */ - usleep(2000); + /* Wait 200 ms between attempts */ + // usleep(1000000); } error: -- cgit v1.2.3