diff options
Diffstat (limited to 'apps/iap.c')
-rw-r--r-- | apps/iap.c | 12 |
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; | |||
52 | static int iap_repeatbtn = 0; | 52 | static int iap_repeatbtn = 0; |
53 | static bool iap_btnrepeat = false, iap_btnshuffle = false; | 53 | static bool iap_btnrepeat = false, iap_btnshuffle = false; |
54 | 54 | ||
55 | unsigned char serbuf[RX_BUFLEN]; | 55 | static unsigned char serbuf[RX_BUFLEN]; |
56 | static int serbuf_i = 0; | 56 | static int serbuf_i = 0; |
57 | 57 | ||
58 | static unsigned char response[TX_BUFLEN]; | 58 | static 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 | |||
872 | const unsigned char *iap_get_serbuf(void) | ||
873 | { | ||
874 | return serbuf; | ||
875 | } | ||
876 | |||