File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -744,13 +744,23 @@ ifndef RESET_CMD
744
744
endif
745
745
ifneq ($(CATERINA),)
746
746
ifneq (,$(findstring CYGWIN,$(shell uname -s)))
747
+ # confirm user is using default cygwin unix Python (which uses ttySx) and not Windows Python (which uses COMx)
748
+ ifeq ($(shell which python),/usr/bin/python)
747
749
RESET_CMD = $(ARD_RESET_ARDUINO ) --caterina $(ARD_RESET_OPTS ) $(DEVICE_PATH )
750
+ else
751
+ RESET_CMD = $(ARD_RESET_ARDUINO ) --caterina $(ARD_RESET_OPTS ) $(call get_monitor_port)
752
+ endif
748
753
else
749
754
RESET_CMD = $(ARD_RESET_ARDUINO ) --caterina $(ARD_RESET_OPTS ) $(call get_monitor_port)
750
755
endif
751
756
else
752
757
ifneq (,$(findstring CYGWIN,$(shell uname -s)))
758
+ # confirm user is using default cygwin unix Python (which uses ttySx) and not Windows Python (which uses COMx)
759
+ ifeq ($(shell which python),/usr/bin/python)
753
760
RESET_CMD = $(ARD_RESET_ARDUINO ) $(ARD_RESET_OPTS ) $(DEVICE_PATH )
761
+ else
762
+ RESET_CMD = $(ARD_RESET_ARDUINO ) $(ARD_RESET_OPTS ) $(call get_monitor_port)
763
+ endif
754
764
else
755
765
RESET_CMD = $(ARD_RESET_ARDUINO ) $(ARD_RESET_OPTS ) $(call get_monitor_port)
756
766
endif
You can’t perform that action at this time.
0 commit comments