Skip to content

Commit

Permalink
boards/esp32s2-lilygo-ttgo-t8: add TTY board filter
Browse files Browse the repository at this point in the history
When using `make flash` or `make term` with `MOST_RECENT_PORT=1`, RIOT
should now only consider plausible TTYs and select the most recently
connected one. The filter is a bit broad, though, and will match
any board with a CH430 UART2USB bridge. But depending on the boards
attached, it might be good enough to reliably tell it apart from
other boards.
  • Loading branch information
maribu committed Dec 6, 2023
1 parent 109cab0 commit d56d152
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/esp32s2-lilygo-ttgo-t8/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ ifneq (,$(filter esp32s2-lilygo-ttgo-t8-usb,$(USEMODULE)))
endif

include $(RIOTBOARD)/common/esp32s2/Makefile.include

# Only consider TTYs matching the following filter when auto-selecting the TTY
# with `MOST_RECENT_PORT=1`.
TTY_BOARD_FILTER := --driver 'ch341' --vendor '1a86' --model 'USB Serial'

0 comments on commit d56d152

Please sign in to comment.