diff --git a/Sming/Components/esptool/component.mk b/Sming/Components/esptool/component.mk index 330f82a5b1..ed600e1fe9 100644 --- a/Sming/Components/esptool/component.mk +++ b/Sming/Components/esptool/component.mk @@ -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