From a90a3ae86a0daa441648e54883ec3c43af607ecc Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Mon, 19 Sep 2011 09:51:19 +1200 Subject: [PATCH] sport: allow serial reads to be interrupted with Ctrl+C. --- util/sport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/sport.c b/util/sport.c index 30d919d..c24963d 100644 --- a/util/sport.c +++ b/util/sport.c @@ -86,7 +86,7 @@ int sport_read(sport_t s, uint8_t *data, int len) if (!r) errno = ETIMEDOUT; - if (r <= 0 && errno != EINTR) + if (r <= 0) return -1; } while (r <= 0);