summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--uisimulator/common/stubs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index ac484a4d11..e25c3ec2ce 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -124,6 +124,13 @@ void backlight_set_on_when_charging(bool beep)
(void)beep;
}
+/* original is in firmware/common/timefuncs.c */
+struct tm *get_time(void)
+{
+ time_t now = time(NULL);
+ return localtime(&now);
+}
+
int rtc_read(int address)
{
time_t now = time(NULL);