summaryrefslogtreecommitdiffstats
path: root/apps/iap.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-09-20 19:37:17 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-09-20 19:37:17 +0000
commitc0edce8f5c51508ccaef9bb8460205b0ea2c9438 (patch)
treee1355b54824407f3c93e1bc7ba75b4206efe0fbb /apps/iap.c
parent855346a9480c5b923be2ee577f5451c4bac8374c (diff)
downloadrockbox-c0edce8f5c51508ccaef9bb8460205b0ea2c9438.tar.gz
rockbox-c0edce8f5c51508ccaef9bb8460205b0ea2c9438.tar.bz2
rockbox-c0edce8f5c51508ccaef9bb8460205b0ea2c9438.zip
iap: make variable serbuf non-global
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28128 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/iap.c')
-rw-r--r--apps/iap.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/iap.c b/apps/iap.c
index 4d2ec625cd..f53717e625 100644
--- a/apps/iap.c
+++ b/apps/iap.c
@@ -52,7 +52,7 @@ static unsigned long iap_remotebtn = 0;
static int iap_repeatbtn = 0;
static bool iap_btnrepeat = false, iap_btnshuffle = false;
-unsigned char serbuf[RX_BUFLEN];
+static unsigned char serbuf[RX_BUFLEN];
static int serbuf_i = 0;
static unsigned char response[TX_BUFLEN];
@@ -837,13 +837,13 @@ void iap_handlepkt(void)
/* tuner frequency from scan */
case 0x13:
{
- rmt_tuner_freq();
+ rmt_tuner_freq(serbuf);
break;
}
/* RDS station name 0x21 1E 00 + ASCII text*/
case 0x21:
{
- rmt_tuner_rds_data();
+ rmt_tuner_rds_data(serbuf);
break;
}
}
@@ -868,3 +868,9 @@ int remote_control_rx(void)
return btn;
}
+
+const unsigned char *iap_get_serbuf(void)
+{
+ return serbuf;
+}
+