From d89eba1619ca6f7797368074b501ed9e34dc95e5 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 6 Jun 2007 19:39:59 +0000 Subject: As ususual, fix the sim errors. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13574 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/common/fmradio.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- cgit v1.2.3