hcd/ehci: hcd_edpt_open() return false if ep is already opened. implement hcd_edpt_close()
This commit is contained in:
@@ -340,8 +340,8 @@ def test_host_device_info(board):
|
||||
ser.close()
|
||||
if len(data) == 0:
|
||||
assert False, 'No data from device'
|
||||
|
||||
lines = data.decode('utf-8', errors='ignore').splitlines()
|
||||
|
||||
enum_dev_sn = []
|
||||
for l in lines:
|
||||
vid_pid_sn = re.search(r'ID ([0-9a-fA-F]+):([0-9a-fA-F]+) SN (\w+)', l)
|
||||
@@ -353,7 +353,6 @@ def test_host_device_info(board):
|
||||
failed_msg = f'Expected {declared_devs}, Enumerated {enum_dev_sn}'
|
||||
print('\n'.join(lines))
|
||||
assert False, failed_msg
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user