diff options
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/common/stubs.c | 7 |
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) | |||
124 | (void)beep; | 124 | (void)beep; |
125 | } | 125 | } |
126 | 126 | ||
127 | /* original is in firmware/common/timefuncs.c */ | ||
128 | struct tm *get_time(void) | ||
129 | { | ||
130 | time_t now = time(NULL); | ||
131 | return localtime(&now); | ||
132 | } | ||
133 | |||
127 | int rtc_read(int address) | 134 | int rtc_read(int address) |
128 | { | 135 | { |
129 | time_t now = time(NULL); | 136 | time_t now = time(NULL); |