diff options
author | Keith Packard <keithp@keithp.com> | 2012-12-07 10:05:51 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-12-07 10:12:19 -0800 |
commit | c10f9a438ed5789479d21c78153ca7f14c05534c (patch) | |
tree | f92e652d2d478da3636d7cf77383df1e1f08c7c5 /src/cc1111 | |
parent | 16fd9009d8b034fd8d208115317f65fabe10072a (diff) |
altos: fix functions calling pollchar to use 'int' to hold the value
AO_READ_AGAIN doesn't fit in a char anymore now that stdio is 8-bit
clean, everyone using pollchar must use an 'int' variable to capture
the whole value from pollchar.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111')
-rw-r--r-- | src/cc1111/ao_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cc1111/ao_usb.c b/src/cc1111/ao_usb.c index 81e9074e..f66e807c 100644 --- a/src/cc1111/ao_usb.c +++ b/src/cc1111/ao_usb.c @@ -411,7 +411,7 @@ ao_usb_getchar(void) __critical { int c; - while ((c = ao_usb_pollchar()) == -1) + while ((c = ao_usb_pollchar()) == AO_READ_AGAIN) ao_sleep(&ao_stdin_ready); return c; } |