diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2007-06-06 19:39:59 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2007-06-06 19:39:59 +0000 |
| commit | d89eba1619ca6f7797368074b501ed9e34dc95e5 (patch) | |
| tree | 6c500907db7d2ab7673db1ff10cf5a44515f182c | |
| parent | 21a4a87ca2553834b3f7b0c8f95f1b0889d8cb2c (diff) | |
| download | rockbox-d89eba1619ca6f7797368074b501ed9e34dc95e5.zip rockbox-d89eba1619ca6f7797368074b501ed9e34dc95e5.tar.gz rockbox-d89eba1619ca6f7797368074b501ed9e34dc95e5.tar.bz2 rockbox-d89eba1619ca6f7797368074b501ed9e34dc95e5.tar.xz | |
As ususual, fix the sim errors.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13574 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | uisimulator/common/fmradio.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/uisimulator/common/fmradio.c b/uisimulator/common/fmradio.c index d7acaa5..851c11b 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 |