diff --git a/crawler_software/arduino/crawler_slave/Makefile b/crawler_software/arduino/crawler_slave/Makefile index d35a83e..2d437b3 100644 --- a/crawler_software/arduino/crawler_slave/Makefile +++ b/crawler_software/arduino/crawler_slave/Makefile @@ -5,7 +5,7 @@ # What board to build for and its core CORE ?= arduino:avr -FQBN ?= arduino:avr:nano +FQBN ?= arduino:avr:nano:cpu=atmega328old # What port to build on ifndef SERIAL_DEV @@ -20,13 +20,13 @@ endif all: requirements build upload -build: crawler_slave.ino +build: requirements crawler_slave.ino arduino-cli core install $(CORE) arduino-cli compile -b $(FQBN) crawler_slave -upload: - echo "Would install to $(SERIAL_DEV)" +upload: requirements crawler_slave.ino + arduino-cli upload -b $(FQBN) crawler_slave -p $(SERIAL_DEV) requirements: @if [ -e requirements.txt ]; \