From 015ffb605b32959bc47c4a3aafe2820ee2e47a6e Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Tue, 27 Sep 2016 23:12:40 +0200 Subject: [PATCH] Fix RTC code : return correct value on first call where it is valid. --- drivers/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc.c b/drivers/rtc.c index 0a6325a..f43163e 100644 --- a/drivers/rtc.c +++ b/drivers/rtc.c @@ -61,7 +61,7 @@ uint32_t rtc_get_count(void) return 0; } rtc_start_ok = 1; - return 0; + return rtc->data; } } -- 2.43.0