Don't search for TEENSY_LOADER_CLI if it's already defined
This commit is contained in:
parent
7ea8753b72
commit
ba405cfbb4
1 changed files with 7 additions and 5 deletions
|
@ -87,11 +87,13 @@ DEBUG_PORT = 4242
|
|||
DEBUG_HOST = localhost
|
||||
|
||||
#============================================================================
|
||||
# Autodecct teensy loader
|
||||
ifneq (, $(shell which teensy-loader-cli 2>/dev/null))
|
||||
# Autodetect teensy loader
|
||||
ifndef TEENSY_LOADER_CLI
|
||||
ifneq (, $(shell which teensy-loader-cli 2>/dev/null))
|
||||
TEENSY_LOADER_CLI ?= teensy-loader-cli
|
||||
else
|
||||
else
|
||||
TEENSY_LOADER_CLI ?= teensy_loader_cli
|
||||
endif
|
||||
endif
|
||||
|
||||
# Program the device.
|
||||
|
|
Loading…
Reference in a new issue