8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe27410 commit c7d8651Copy full SHA for c7d8651
ports/esp32/Makefile
@@ -29,8 +29,12 @@ BUILD ?= build-$(BOARD)
29
endif
30
31
# Device serial settings.
32
-PORT ?= /dev/ttyUSB0
33
-BAUD ?= 460800
+ifneq ($(PORT),)
+PORT_ARG := -p $(PORT)
34
+endif
35
+ifneq ($(BAUD),)
36
+BAUD_ARG := -b $(BAUD)
37
38
39
PYTHON ?= python3
40
@@ -59,7 +63,7 @@ endif
59
63
HELP_BUILD_ERROR ?= "See \033[1;31mhttps://github.com/micropython/micropython/wiki/Build-Troubleshooting\033[0m"
60
64
61
65
define RUN_IDF_PY
62
- idf.py $(IDFPY_FLAGS) -B $(BUILD) -p $(PORT) -b $(BAUD) $(1)
66
+ idf.py $(IDFPY_FLAGS) -B $(BUILD) $(PORT_ARG) $(BAUD_ARG) $(1)
67
endef
68
69
all:
0 commit comments