Skip to content

Commit

Permalink
ci(esp_tinyusb): Add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-marcisovsky committed Oct 10, 2024
1 parent 5196c72 commit b737b55
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def test_usb_device_cdc(dut) -> None:
s = []
ports = comports()
for port, _, hwid in ports:
print(port)
if '303A:4002' in hwid:
s.append(port)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.esp32p4
@pytest.mark.usb_device
#@pytest.mark.usb_device
def test_usb_device_esp_tinyusb(dut: IdfDut) -> None:
dut.run_all_single_board_cases(group='')
dut.run_all_single_board_cases(group='usb_device')
4 changes: 2 additions & 2 deletions device/esp_tinyusb/test_apps/vendor/pytest_vendor.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def ep_write(buf):
ep_out = usb.util.find_descriptor(intf, custom_match = \
lambda e: usb.util.endpoint_direction(e.bEndpointAddress) == usb.util.ENDPOINT_OUT)

#print(ep_in)
#print(ep_out)
print(ep_in)
print(ep_out)
buf = "IF{}\n".format(interface_index).encode('utf-8')
ep_write(bytes(buf))

Expand Down

0 comments on commit b737b55

Please sign in to comment.