From b25bc1cc9dd7e90b87d2f2b8bbbaed09c44e7ba6 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 24 Aug 2014 12:40:15 +1000 Subject: [PATCH] Add a small delay between cms50i date and time set --- sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp b/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp index cdc64d5d..fd6ad2ce 100644 --- a/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp +++ b/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp @@ -599,6 +599,9 @@ void CMS50F37Loader::syncClock() } while ((timectr == 0) && (time.elapsed() < TIMEOUT)); + QThread::msleep(100); + QApplication::processEvents(); + QTime ctime = QTime::currentTime(); quint8 h = ctime.hour(); quint8 m = ctime.minute();