Skip to content

Commit 97ce5d1

Browse files
committed
tests/pyb/rtc: Make RTC test on pyboard more reliable by calling init().
1 parent 7d60a97 commit 97ce5d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/pyb/rtc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from pyb import RTC
33

44
rtc = RTC()
5+
rtc.init()
56
print(rtc)
67

78
# make sure that 1 second passes correctly

0 commit comments

Comments
 (0)