From 0e05feae5ee51298a8483698b848fd938cffb202 Mon Sep 17 00:00:00 2001 From: Anol Paisal Date: Mon, 10 Jun 2019 11:32:44 +0700 Subject: [PATCH] Move rtc gettime in while loop --- src/boards/SKiM980A/rtc-board.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/boards/SKiM980A/rtc-board.c b/src/boards/SKiM980A/rtc-board.c index e4b9cca3d..4dd74fc83 100644 --- a/src/boards/SKiM980A/rtc-board.c +++ b/src/boards/SKiM980A/rtc-board.c @@ -484,9 +484,6 @@ static uint64_t RtcGetCalendarValue( RTC_DateTypeDef* date, RTC_TimeTypeDef* tim uint32_t correction; uint32_t seconds; - // Get Time and Date - HAL_RTC_GetTime( &RtcHandle, time, RTC_FORMAT_BIN ); - // Make sure it is correct due to asynchronus nature of RTC do {