diff options
-rw-r--r-- | apps/iap.c | 2 | ||||
-rw-r--r-- | firmware/export/iap.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/iap.c b/apps/iap.c index f53717e625..d432a16dc3 100644 --- a/apps/iap.c +++ b/apps/iap.c | |||
@@ -148,7 +148,7 @@ void iap_send_pkt(const unsigned char * data, int len) | |||
148 | } | 148 | } |
149 | } | 149 | } |
150 | 150 | ||
151 | int iap_getc(unsigned char x) | 151 | bool iap_getc(unsigned char x) |
152 | { | 152 | { |
153 | static unsigned char last_x = 0; | 153 | static unsigned char last_x = 0; |
154 | static bool newpkt = true; | 154 | static bool newpkt = true; |
diff --git a/firmware/export/iap.h b/firmware/export/iap.h index fab218cf05..c9a670a05f 100644 --- a/firmware/export/iap.h +++ b/firmware/export/iap.h | |||
@@ -20,10 +20,12 @@ | |||
20 | #ifndef __IAP_H__ | 20 | #ifndef __IAP_H__ |
21 | #define __IAP_H__ | 21 | #define __IAP_H__ |
22 | 22 | ||
23 | #include <stdbool.h> | ||
24 | |||
23 | #define RX_BUFLEN 260 | 25 | #define RX_BUFLEN 260 |
24 | #define TX_BUFLEN 128 | 26 | #define TX_BUFLEN 128 |
25 | 27 | ||
26 | extern int iap_getc(unsigned char x); | 28 | extern bool iap_getc(unsigned char x); |
27 | extern void iap_setup(int ratenum); | 29 | extern void iap_setup(int ratenum); |
28 | extern void iap_bitrate_set(int ratenum); | 30 | extern void iap_bitrate_set(int ratenum); |
29 | extern void iap_periodic(void); | 31 | extern void iap_periodic(void); |