summaryrefslogtreecommitdiff
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;
52static int iap_repeatbtn = 0; 52static int iap_repeatbtn = 0;
53static bool iap_btnrepeat = false, iap_btnshuffle = false; 53static bool iap_btnrepeat = false, iap_btnshuffle = false;
54 54
55unsigned char serbuf[RX_BUFLEN]; 55static unsigned char serbuf[RX_BUFLEN];
56static int serbuf_i = 0; 56static int serbuf_i = 0;
57 57
58static unsigned char response[TX_BUFLEN]; 58static unsigned char response[TX_BUFLEN];
@@ -837,13 +837,13 @@ void iap_handlepkt(void)
837 /* tuner frequency from scan */ 837 /* tuner frequency from scan */
838 case 0x13: 838 case 0x13:
839 { 839 {
840 rmt_tuner_freq(); 840 rmt_tuner_freq(serbuf);
841 break; 841 break;
842 } 842 }
843 /* RDS station name 0x21 1E 00 + ASCII text*/ 843 /* RDS station name 0x21 1E 00 + ASCII text*/
844 case 0x21: 844 case 0x21:
845 { 845 {
846 rmt_tuner_rds_data(); 846 rmt_tuner_rds_data(serbuf);
847 break; 847 break;
848 } 848 }
849 } 849 }
@@ -868,3 +868,9 @@ int remote_control_rx(void)
868 868
869 return btn; 869 return btn;
870} 870}
871
872const unsigned char *iap_get_serbuf(void)
873{
874 return serbuf;
875}
876