mirror of https://github.com/ArduPilot/ardupilot
Added override for mega upload protocol.
This commit is contained in:
parent
bd09dd392d
commit
9c766d6373
|
@ -330,6 +330,12 @@ ifeq ($(UPLOAD_PROTOCOL),)
|
|||
UPLOAD_PROTOCOL := $(shell grep $(BOARD).upload.protocol $(BOARDFILE) | cut -d = -f 2)
|
||||
endif
|
||||
|
||||
# Adding override for mega since boards.txt uses stk500 instead of
|
||||
# arduino on 22 release
|
||||
ifeq ($(BOARD),"mega")
|
||||
UPLOAD_PROTOCOL := "arduino"
|
||||
endif
|
||||
|
||||
ifeq ($(MCU),)
|
||||
$(error ERROR: Could not locate board $(BOARD) in $(BOARDFILE))
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue