From c0d28f3f87ee762f330fcd96058f6c18105d862a Mon Sep 17 00:00:00 2001 From: kYc0o Date: Wed, 9 Mar 2016 15:15:18 +0100 Subject: [PATCH] boards/arduino-mega2560: add support to flash it on mac osx --- boards/arduino-mega2560/Makefile.include | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/boards/arduino-mega2560/Makefile.include b/boards/arduino-mega2560/Makefile.include index 54aba18205..1827bced6d 100644 --- a/boards/arduino-mega2560/Makefile.include +++ b/boards/arduino-mega2560/Makefile.include @@ -18,12 +18,12 @@ OS = $(shell uname) ifeq ($(OS),Linux) PORT ?= /dev/ttyACM0 FLASHER = avrdude -#else ifeq ($(OS),Darwin) -# PORT ?= -# FLASHER = +else ifeq ($(OS),Darwin) + PORT ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*))) + FLASHER = avrdude else $(info CAUTION: No flash tool for your host system found!) - # TODO: fix for building under windows/MacOS + # TODO: fix for building under windows endif export FLASHER export PORT