summaryrefslogtreecommitdiff
path: root/uisimulator/common/fmradio.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/common/fmradio.c')
-rw-r--r--uisimulator/common/fmradio.c10
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 @@
26static int frequency = 0; 26static int frequency = 0;
27static bool mono = false; 27static bool mono = false;
28 28
29void radio_set(int setting, int value) 29int 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
52int radio_get(int setting) 58int radio_get(int setting)