sport: allow serial reads to be interrupted with Ctrl+C.

This commit is contained in:
Daniel Beer 2011-09-19 09:51:19 +12:00
parent 92c18f32dc
commit a90a3ae86a
1 changed files with 1 additions and 1 deletions

View File

@ -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);