summaryrefslogtreecommitdiffstats
path: root/uisimulator/common
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-10-13 12:07:59 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-10-13 12:07:59 +0000
commitc9d1ab721870b622a3698cd9b1ee9c451fabf85a (patch)
tree96d93d3b0471ce3de628867f71a7851923ef08c5 /uisimulator/common
parent5fc117ea4e1aedf820a9787e33f208b489a31407 (diff)
downloadrockbox-c9d1ab721870b622a3698cd9b1ee9c451fabf85a.tar.gz
rockbox-c9d1ab721870b622a3698cd9b1ee9c451fabf85a.tar.bz2
rockbox-c9d1ab721870b622a3698cd9b1ee9c451fabf85a.zip
Fixes a problem where the sim would try to start the WPS on HAVE_RTC_ALARM sims (FS#7862 with a small addition by me)
use the --alarm argument if you do want to simulate this behaviour git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15094 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common')
-rw-r--r--uisimulator/common/stubs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index 69daa515b0..840b1421c0 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -169,9 +169,11 @@ bool rtc_enable_alarm(bool enable)
return enable;
}
+extern bool sim_alarm_wakeup;
bool rtc_check_alarm_started(bool release_alarm)
{
- return release_alarm;
+ (void)release_alarm;
+ return sim_alarm_wakeup;
}
bool rtc_check_alarm_flag(void)