summaryrefslogtreecommitdiffstats
path: root/apps/iap.c
diff options
context:
space:
mode:
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;
+}
+