tests/pyb/rtc: Make RTC test on pyboard more reliable by calling init().
This commit is contained in:
parent
7d60a97914
commit
97ce5d1d77
@ -2,6 +2,7 @@ import pyb, stm
|
|||||||
from pyb import RTC
|
from pyb import RTC
|
||||||
|
|
||||||
rtc = RTC()
|
rtc = RTC()
|
||||||
|
rtc.init()
|
||||||
print(rtc)
|
print(rtc)
|
||||||
|
|
||||||
# make sure that 1 second passes correctly
|
# make sure that 1 second passes correctly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user