RTC test readline timeout increased to 10 seconds. Reason: RTC test is fail on Nucleo boards which don’t have the LSE xtal. This is because there is a timeout in the code of several seconds to wait until the LSE clock has startup.

pull/561/merge
Przemek Wirkus 2014-10-15 17:19:36 +01:00
parent 7e5dfeef32
commit 945604e16e
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ class RTCTest(DefaultTest):
start = time()
sec_prev = 0
for i in range(0, 5):
c = self.mbed.serial_readline()
# Timeout changed from default: we need to wait longer for some boards to start-up
c = self.mbed.serial_readline(timeout=10)
if c is None:
self.print_result("ioerr_serial")
return