From 194c9b7978d808864c070cb26201cc1b12eeb112 Mon Sep 17 00:00:00 2001 From: "romolo.manfredini@gmail.com" Date: Mon, 1 Oct 2012 23:31:23 +0000 Subject: [PATCH] init rtc twice to be sure to read current time --- src/open9x.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/open9x.cpp b/src/open9x.cpp index e7ac85c8b..a85c67fcd 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -3253,7 +3253,12 @@ inline void open9xInit(OPEN9X_INIT_ARGS) eeDirty(EE_GENERAL); } #endif - +#if defined(PCBARM) + rtc_init(); + CoTickDelay(10); // 20ms + rtc_init(); +#endif + lcdSetContrast(); backlightOn();