Skip to content

Commit

Permalink
Don't search for TEENSY_LOADER_CLI if it's already defined
Browse files Browse the repository at this point in the history
  • Loading branch information
fredizzimo authored and jackhumbert committed Jul 10, 2017
1 parent 7ea8753 commit ba405cf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tmk_core/avr.mk
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,13 @@ DEBUG_PORT = 4242
DEBUG_HOST = localhost

#============================================================================
# Autodecct teensy loader
ifneq (, $(shell which teensy-loader-cli 2>/dev/null))
TEENSY_LOADER_CLI ?= teensy-loader-cli
else
TEENSY_LOADER_CLI ?= teensy_loader_cli
# Autodetect teensy loader
ifndef TEENSY_LOADER_CLI
ifneq (, $(shell which teensy-loader-cli 2>/dev/null))
TEENSY_LOADER_CLI ?= teensy-loader-cli
else
TEENSY_LOADER_CLI ?= teensy_loader_cli
endif
endif

# Program the device.
Expand Down

0 comments on commit ba405cf

Please sign in to comment.