mirror of https://github.com/ArduPilot/ardupilot
Added override for mega upload protocol.
This commit is contained in:
parent
30f4ced9df
commit
f7a307e349
|
@ -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