Skip to content

Commit d779b96

Browse files
committed
tests: Wait for just over 1 sec when testing RTC.
Waiting for 1000ms between seconds of RTC is sometimes too quick. Waiting for 1001ms is enough for the RTC to pass 1 second.
1 parent 244476e commit d779b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/pyb/rtc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# make sure that 1 second passes correctly
88
rtc.datetime((2014, 1, 1, 1, 0, 0, 0, 0))
9-
pyb.delay(1000)
9+
pyb.delay(1001)
1010
print(rtc.datetime()[:7])
1111

1212
def set_and_print(datetime):

0 commit comments

Comments
 (0)