summaryrefslogtreecommitdiff
path: root/src/avr/ao_usb_avr.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-12-25 14:20:42 -0800
committerKeith Packard <keithp@keithp.com>2012-12-25 14:20:42 -0800
commit868ef0c9c4b208c02a87180b0eede329369bdc77 (patch)
tree1f20d312d56bac34bad12f287629a2651bbbccf8 /src/avr/ao_usb_avr.c
parent669cde8a87d88ceae89e369c1d38b88c9f8198cf (diff)
parent57487e78b90465a21c87cf30deb0aeaba0887332 (diff)
Merge branch 'master' into micropeak-logging
Diffstat (limited to 'src/avr/ao_usb_avr.c')
-rw-r--r--src/avr/ao_usb_avr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/avr/ao_usb_avr.c b/src/avr/ao_usb_avr.c
index 9ba407af..2ef546c9 100644
--- a/src/avr/ao_usb_avr.c
+++ b/src/avr/ao_usb_avr.c
@@ -480,10 +480,10 @@ ao_usb_putchar(char c) __critical __reentrant
ao_usb_in_flushed = 0;
}
-static char
+static int
_ao_usb_pollchar(void)
{
- char c;
+ uint8_t c;
uint8_t intx;
if (!ao_usb_running)
@@ -517,10 +517,10 @@ _ao_usb_pollchar(void)
return c;
}
-char
+int
ao_usb_pollchar(void)
{
- char c;
+ int c;
cli();
c = _ao_usb_pollchar();
sei();
@@ -530,7 +530,7 @@ ao_usb_pollchar(void)
char
ao_usb_getchar(void) __critical
{
- char c;
+ int c;
cli();
while ((c = _ao_usb_pollchar()) == AO_READ_AGAIN)