tests/pyb/rtc: Make RTC test on pyboard more reliable by calling init().

This commit is contained in:
Damien George 2016-06-03 15:13:39 +01:00
parent 7d60a97914
commit 97ce5d1d77
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import pyb, stm
from pyb import RTC
rtc = RTC()
rtc.init()
print(rtc)
# make sure that 1 second passes correctly