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.
This commit is contained in:
parent
244476e3e6
commit
d779b9642f
@ -6,7 +6,7 @@ print(rtc)
|
||||
|
||||
# make sure that 1 second passes correctly
|
||||
rtc.datetime((2014, 1, 1, 1, 0, 0, 0, 0))
|
||||
pyb.delay(1000)
|
||||
pyb.delay(1001)
|
||||
print(rtc.datetime()[:7])
|
||||
|
||||
def set_and_print(datetime):
|
||||
|
Loading…
x
Reference in New Issue
Block a user