summaryrefslogtreecommitdiffstats
path: root/uisimulator/common
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-06-06 19:39:59 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-06-06 19:39:59 +0000
commitd89eba1619ca6f7797368074b501ed9e34dc95e5 (patch)
tree6c500907db7d2ab7673db1ff10cf5a44515f182c /uisimulator/common
parent21a4a87ca2553834b3f7b0c8f95f1b0889d8cb2c (diff)
downloadrockbox-d89eba1619ca6f7797368074b501ed9e34dc95e5.tar.gz
rockbox-d89eba1619ca6f7797368074b501ed9e34dc95e5.tar.bz2
rockbox-d89eba1619ca6f7797368074b501ed9e34dc95e5.zip
As ususual, fix the sim errors.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13574 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common')
-rw-r--r--uisimulator/common/fmradio.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/uisimulator/common/fmradio.c b/uisimulator/common/fmradio.c
index d7acaa513b..851c11bcb5 100644
--- a/uisimulator/common/fmradio.c
+++ b/uisimulator/common/fmradio.c
@@ -26,6 +26,10 @@
static int frequency = 0;
static bool mono = false;
+#ifdef HAVE_TUNER_PWR_CTRL
+static bool powered = false;
+#endif
+
int radio_set(int setting, int value)
{
switch(setting)
@@ -81,4 +85,13 @@ int radio_get(int setting)
return val;
}
+#ifdef HAVE_TUNER_PWR_CTRL
+bool radio_power(bool status)
+{
+ bool oldstatus = powered;
+ powered = status;
+ return oldstatus;
+}
+#endif
+
#endif