mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 11:10:44 +00:00
Add a small delay between cms50i date and time set
This commit is contained in:
parent
09ccf1984c
commit
b25bc1cc9d
@ -599,6 +599,9 @@ void CMS50F37Loader::syncClock()
|
|||||||
} while ((timectr == 0) && (time.elapsed() < TIMEOUT));
|
} while ((timectr == 0) && (time.elapsed() < TIMEOUT));
|
||||||
|
|
||||||
|
|
||||||
|
QThread::msleep(100);
|
||||||
|
QApplication::processEvents();
|
||||||
|
|
||||||
QTime ctime = QTime::currentTime();
|
QTime ctime = QTime::currentTime();
|
||||||
quint8 h = ctime.hour();
|
quint8 h = ctime.hour();
|
||||||
quint8 m = ctime.minute();
|
quint8 m = ctime.minute();
|
||||||
|
Loading…
Reference in New Issue
Block a user