Skip to content

Commit

Permalink
esptool needs same comport fix for WSL2 (#2791)
Browse files Browse the repository at this point in the history
Further to #2790 esptool of course uses COM ports and same issue applies when physical ports available in WSL2.
  • Loading branch information
mikee47 authored Jun 7, 2024
1 parent 307d6db commit 7e11439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sming/Components/esptool/component.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ESPTOOL_CMDLINE := $(PYTHON) $(ESPTOOL) \
# USB serial ports are not available under WSL2,
# but we can use powershell with the regular Windows COM port
# $1 -> Arguments
ifdef WSL_ROOT
ifeq ($(WSL_COMPORT_POWERSHELL),1)
ESPTOOL_EXECUTE = powershell.exe -Command "$(ESPTOOL_CMDLINE) $1"
else
ESPTOOL_EXECUTE = $(ESPTOOL_CMDLINE) $1
Expand Down

0 comments on commit 7e11439

Please sign in to comment.