diff --git a/makefiles/boards/sam0.inc.mk b/makefiles/boards/sam0.inc.mk index fb7ee01fa0..b8af00e0b7 100644 --- a/makefiles/boards/sam0.inc.mk +++ b/makefiles/boards/sam0.inc.mk @@ -28,7 +28,7 @@ ifeq ($(DEBUG_ADAPTER),dap) PROGRAMMER ?= edbg else ifeq ($(DEBUG_ADAPTER),jlink) # only use JLinkExe if it's installed - ifneq (,$(shell command -v JLinkExe)) + ifneq (,$(shell which JLinkExe)) PROGRAMMER ?= jlink else PROGRAMMER ?= openocd