Explorar el Código

Don't search for TEENSY_LOADER_CLI if it's already defined

Fred Sundvik hace 8 años
padre
commit
ba405cfbb4
Se han modificado 1 ficheros con 7 adiciones y 5 borrados
  1. 7 5
      tmk_core/avr.mk

+ 7 - 5
tmk_core/avr.mk

@@ -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.