Fix return type of iap_getc (should be bool instead of int)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28354 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2010-10-24 21:39:09 +00:00
parent 957a31899d
commit 462f012d17
2 changed files with 4 additions and 2 deletions

View file

@ -148,7 +148,7 @@ void iap_send_pkt(const unsigned char * data, int len)
}
}
int iap_getc(unsigned char x)
bool iap_getc(unsigned char x)
{
static unsigned char last_x = 0;
static bool newpkt = true;

View file

@ -20,10 +20,12 @@
#ifndef __IAP_H__
#define __IAP_H__
#include <stdbool.h>
#define RX_BUFLEN 260
#define TX_BUFLEN 128
extern int iap_getc(unsigned char x);
extern bool iap_getc(unsigned char x);
extern void iap_setup(int ratenum);
extern void iap_bitrate_set(int ratenum);
extern void iap_periodic(void);