From b7b82bf0ebb7716df0290a1fa7d7d684b34ec68b Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Mon, 17 Apr 2017 14:26:41 -0300 Subject: [PATCH] Changing stm32flash path to point to the the local binary for zumspot-pi uploading method --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ff712be..a2b2d06 100644 --- a/Makefile +++ b/Makefile @@ -183,7 +183,13 @@ serial-bl: $(STM32FLASH) -v -w bin/$(BINBIN) -g 0x0 -S 0x08002000 $(devser) zumspot-pi: - $(STM32FLASH) -v -w bin/$(BINBIN) -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 +ifneq ($(wildcard /usr/local/bin/stm32flash),) + /usr/local/bin/stm32flash -v -w bin/$(BINBIN) -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 +endif + +ifneq ($(wildcard /usr/bin/stm32flash),) + /usr/bin/stm32flash -v -w bin/$(BINBIN) -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 +endif dfu: ifdef devser