From: Nathael Pajani Date: Tue, 27 Sep 2016 21:12:40 +0000 (+0200) Subject: Fix RTC code : return correct value on first call where it is valid. X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=015ffb605b32959bc47c4a3aafe2820ee2e47a6e;p=soft%2Flpc122x%2Fcore Fix RTC code : return correct value on first call where it is valid. --- 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; } }