diff options
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/common/fmradio.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/uisimulator/common/fmradio.c b/uisimulator/common/fmradio.c index ea6d6f6aa5..d7acaa513b 100644 --- a/uisimulator/common/fmradio.c +++ b/uisimulator/common/fmradio.c | |||
@@ -26,7 +26,7 @@ | |||
26 | static int frequency = 0; | 26 | static int frequency = 0; |
27 | static bool mono = false; | 27 | static bool mono = false; |
28 | 28 | ||
29 | void radio_set(int setting, int value) | 29 | int radio_set(int setting, int value) |
30 | { | 30 | { |
31 | switch(setting) | 31 | switch(setting) |
32 | { | 32 | { |
@@ -37,6 +37,10 @@ void radio_set(int setting, int value) | |||
37 | frequency = value; | 37 | frequency = value; |
38 | break; | 38 | break; |
39 | 39 | ||
40 | case RADIO_SCAN_FREQUENCY: | ||
41 | frequency = value; | ||
42 | break; | ||
43 | |||
40 | case RADIO_MUTE: | 44 | case RADIO_MUTE: |
41 | break; | 45 | break; |
42 | 46 | ||
@@ -45,8 +49,10 @@ void radio_set(int setting, int value) | |||
45 | break; | 49 | break; |
46 | 50 | ||
47 | default: | 51 | default: |
48 | return; | 52 | return -1; |
49 | } | 53 | } |
54 | |||
55 | return 1; | ||
50 | } | 56 | } |
51 | 57 | ||
52 | int radio_get(int setting) | 58 | int radio_get(int setting) |