diff options
-rw-r--r-- | apps/status.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/status.c b/apps/status.c index 978341d1db..6a7c6a423d 100644 --- a/apps/status.c +++ b/apps/status.c | |||
@@ -42,6 +42,9 @@ | |||
42 | #include "button.h" | 42 | #include "button.h" |
43 | #endif | 43 | #endif |
44 | #include "usb.h" | 44 | #include "usb.h" |
45 | #ifdef CONFIG_TUNER | ||
46 | #include "radio.h" | ||
47 | #endif | ||
45 | 48 | ||
46 | enum playmode ff_mode; | 49 | enum playmode ff_mode; |
47 | 50 | ||
@@ -118,6 +121,16 @@ int current_playmode(void) | |||
118 | } | 121 | } |
119 | } | 122 | } |
120 | #endif | 123 | #endif |
124 | |||
125 | #ifdef CONFIG_TUNER | ||
126 | audio_stat = get_radio_status(); | ||
127 | |||
128 | if(audio_stat == FMRADIO_PLAYING) | ||
129 | return STATUS_PLAY; | ||
130 | |||
131 | if(audio_stat == FMRADIO_PAUSED) | ||
132 | return STATUS_PAUSE; | ||
133 | #endif | ||
121 | 134 | ||
122 | return STATUS_STOP; | 135 | return STATUS_STOP; |
123 | } | 136 | } |