altos: fix functions calling pollchar to use 'int' to hold the value
[fw/altos] / src / drivers / ao_packet_master.c
index e97a66488ce11116f9f11694d38b68ca359abc47..023c788ba86c4be6c0d8d0efcc548f5e8df973e3 100644 (file)
@@ -18,9 +18,9 @@
 #include "ao.h"
 
 static char
-ao_packet_getchar(void) __critical
+ao_packet_getchar(void)
 {
-       char c;
+       int c;
        while ((c = ao_packet_pollchar()) == AO_READ_AGAIN) {
                if (!ao_packet_enable)
                        break;
@@ -35,7 +35,7 @@ ao_packet_getchar(void) __critical
 static void
 ao_packet_echo(void) __reentrant
 {
-       char    c;
+       int     c;
        while (ao_packet_enable) {
                c = ao_packet_getchar();
                if (c != AO_READ_AGAIN)