mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user