mirror of https://github.com/ARMmbed/mbed-os.git
Returns IO_FAIL when inital output is incorrect instead of IO_SERIAL
parent
0551f6e8b9
commit
1cb4afc60b
|
@ -25,9 +25,13 @@ class WFITest():
|
|||
def test(self, selftest):
|
||||
result = True
|
||||
c = selftest.mbed.serial_readline()
|
||||
if c is None or c.strip() != "0":
|
||||
|
||||
if c is None
|
||||
return selftest.RESULT_IO_SERIAL
|
||||
|
||||
if c.strip() != "0":
|
||||
return selftest.RESULT_IO_FAIL
|
||||
|
||||
# Wait 10 seconds to allow serial prints (indicating failure)
|
||||
selftest.mbed.set_serial_timeout(10)
|
||||
|
||||
|
|
Loading…
Reference in New Issue