make larger chance to see a second

This commit is contained in:
jyy 2018-03-25 11:11:11 +08:00
parent 4aa815349f
commit 27c8cdb9ce
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ static int read_rtc(int reg) {
static void wait_sec() {
while (1) {
int volatile s1 = read_rtc(0);
for (int volatile i = 0; i < 1000; i++) ;
int volatile s2 = read_rtc(0);
if (s1 != s2) {
return;